Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Implement tracking variable values by location #682

Copy link
Copy link
@MikhailArkhipov

Description

@MikhailArkhipov
Issue body actions

For better intellisense we need to track variable assignment locations so in

x = 1
x. # yields completions for int
x = 's'
x. # yields completions for str

see also #668 for isinstance so

from typing import Union, List

class Foo: pass
class Bar: pass

FB = Union[Foo, List[Bar]]

def do(fb: FB):
    if isinstance(fb, list):
        fb. # completions for list
        return fb[0]
    else:
        fb. # completions for Foo
Reactions are currently unavailable

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.