Skip to content

typing: fix getfslineno (assignment)#6622

Closed
blueyed wants to merge 2 commits intopytest-dev:masterfrom
blueyed:typing-getfslineno-assignment
Closed

typing: fix getfslineno (assignment)#6622
blueyed wants to merge 2 commits intopytest-dev:masterfrom
blueyed:typing-getfslineno-assignment

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