Skip to content

typing: fix getfslineno (assignment) #6622

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented Jan 29, 2020

Fixes:

src/_pytest/_code/source.py:309: error: Incompatible types in
assignment (expression has type "Union[local, str]", variable has type
"Optional[local]") [assignment]

Taken out of #6590.

Fixes:

> src/_pytest/_code/source.py:309: error: Incompatible types in
> assignment (expression has type "Union[local, str]", variable has type
> "Optional[local]")  [assignment]
Fixes:

> src/_pytest/_code/source.py:310: error: Incompatible return value type
> (got "Tuple[Union[local, str], int]", expected
>      "Tuple[Union[Literal[''], local, None], int]")  [return-value]
@blueyed
Copy link
Contributor Author

blueyed commented Jan 29, 2020

Will keep it in #6590.

@blueyed blueyed closed this Jan 29, 2020
@blueyed blueyed deleted the typing-getfslineno-assignment branch January 29, 2020 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant