Always alias collections.abc.Set (#6712)

This commit is contained in:
Alex Waygood
2021-12-27 16:09:47 +00:00
committed by GitHub
parent 51a2cd1289
commit 975b3e901b
5 changed files with 14 additions and 10 deletions

View File

@@ -1,9 +1,9 @@
from collections.abc import Iterator, Mapping, Set
from collections.abc import Iterator, Mapping, Set as AbstractSet
from typing_extensions import TypedDict
from pygments.token import _TokenType
ansicolors: Set[str] # not intended to be mutable (== typing.AbstractSet, not builtins.set)
ansicolors: AbstractSet[str] # not intended to be mutable
class _StyleDict(TypedDict):
color: str | None