Skip to content

Conversation

sterliakov
Copy link
Collaborator

Originally discovered in #19777. Our test fixtures use definitions that are very far from their real counterparts, but at least generics should match if possible. Let's see if it kills more than one testcase (expected from #19777).

@sterliakov sterliakov force-pushed the chore/st-sync-fixture-variance branch from 90a99ff to bb10017 Compare September 1, 2025 22:03
@@ -18,8 +18,8 @@ class Iterable(Generic[T_co]): pass
class Iterator(Iterable[T_co]): pass
class Sequence(Iterable[T_co]): pass
class Mapping(Iterable[KT], Generic[KT, T_co]):
def keys(self) -> Iterable[T]: pass # Approximate return type
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

And this was weird.

@sterliakov sterliakov marked this pull request as ready for review September 4, 2025 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant