Skip to content
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

Merged
merged 50 commits into from
Jan 20, 2023

Conversation

ryantimjohn
Copy link
Contributor

No description provided.

@@ -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]
Copy link
Contributor Author

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?

Copy link
Collaborator

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?

Copy link
Contributor Author

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?

@ryantimjohn ryantimjohn marked this pull request as ready for review January 14, 2023 17:02
setup.py Outdated Show resolved Hide resolved
setup.py Show resolved Hide resolved
@Brunope Brunope mentioned this pull request Jan 17, 2023
@ryantimjohn
Copy link
Contributor Author

Ok, @Brunope, logging out for the day but looks like tests should pass at this point.

Copy link
Collaborator

@Brunope Brunope left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done!

@ryantimjohn ryantimjohn merged commit 62a31a3 into master Jan 20, 2023
@ryantimjohn ryantimjohn deleted the RM-34-upgrade-syntax-to-support-airflow-2-0 branch January 20, 2023 19:56
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.

3 participants