-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Use python-typing-update
on pylint/pyreverse
directory
#6309
Conversation
Tuple[str, str, str, str, int, int], | ||
MessageLocationTuple, | ||
], | ||
location: (tuple[str, str, str, str, int, int] | MessageLocationTuple), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
location: (tuple[str, str, str, str, int, int] | MessageLocationTuple), | |
location: MessageLocationTuple, |
Could we do this ? It seems those should be the same thing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, see the deprecation warning a couple of lines below. location
needs to be initialised as MessageLocationTuple
and not be a regular tuple
.
... | ||
|
||
@overload | ||
def __new__( | ||
cls, | ||
msg_id: str, | ||
symbol: str, | ||
location: Tuple[str, str, str, str, int, int], | ||
location: tuple[str, str, str, str, int, int], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
location: tuple[str, str, str, str, int, int], | |
location: MessageLocationTuple, |
(π€ ?)
Pull Request Test Coverage Report for Build 2166275252
π - Coveralls |
Tuple[str, str, str, str, int, int], | ||
MessageLocationTuple, | ||
], | ||
location: (tuple[str, str, str, str, int, int] | MessageLocationTuple), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The brackets could have been removed here though.
- location: (tuple[str, str, str, str, int, int] | MessageLocationTuple),
+ location: tuple[str, str, str, str, int, int] | MessageLocationTuple,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in follow-up!
Type of Changes
Description
Ref #4683.
@Pierre-Sassoulas @cdce8p Perhaps comment if you're going to review as not to duplicate work.