-
Notifications
You must be signed in to change notification settings - Fork 4
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
RM-34-upgrade-syntax-to-support-airflow-2-0 #193
RM-34-upgrade-syntax-to-support-airflow-2-0 #193
Conversation
…/github.com/bluelabsio/records-mover into RM-34-upgrade-syntax-to-support-airflow-2-0
types/stubs/logging/config.pyi
Outdated
@@ -28,7 +28,7 @@ class ConvertingDict(dict, ConvertingMixin): | |||
|
|||
class ConvertingList(list, ConvertingMixin): | |||
def __getitem__(self, key: Any): ... | |||
def pop(self, idx: int = ...): ... | |||
def pop(self, idx: int = ...): ... # type: ignore[override] |
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.
types/stubs/logging/config.pyi:31: error: Argument 1 of "pop" is incompatible with supertype "list"; supertype defines the argument type as "SupportsIndex" [override]
types/stubs/logging/config.pyi:31: note: This violates the Liskov substitution principle
types/stubs/logging/config.pyi:31: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
I'm not actually sure we should ignore the override error here:
https://clifford.readthedocs.io/en/v1.3.0/_modules/typing.html
https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
It seems to me that there's no reason we should be overriding pop here?
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.
Maybe my search wasn't accurate but I can't find anywhere ConvertingList is even referenced?
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.
Yeah, I've come across things in stubs that are that way. Maybe it's a place Vince used to define interface without actually implementing it?
Ok, @Brunope, logging out for the day but looks like tests should pass at this point. |
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.
Well done!
No description provided.