We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
collections.abc
typing
1 parent c90d6df commit ba64a74Copy full SHA for ba64a74
pytype/overlays/collections_overlay.py
@@ -33,4 +33,7 @@ class ABCOverlay(typing_overlay.Redirect):
33
"""A custom overlay for the 'collections.abc' module."""
34
35
def __init__(self, ctx):
36
- super().__init__("collections.abc", {"Set": "typing.AbstractSet"}, ctx)
+ # collections.abc.Set equates to typing.AbstractSet rather than typing.Set.
37
+ # This is the only such mismatch.
38
+ aliases = {"Set": "typing.AbstractSet"}
39
+ super().__init__("collections.abc", aliases, ctx)
0 commit comments