Change a use of frozenset[int] to FrozenSet[int] (#2352)

Using FrozenSet is I think preferred (because it works in general) and
I am about to propose a mypy PR that breaks this particular use.
This commit is contained in:
Michael J. Sullivan
2018-07-31 15:51:14 -07:00
committed by GitHub
parent 1c8c6ec7d9
commit 8b5d4708a0

View File

@@ -1,5 +1,5 @@
import sys
from typing import Union, Tuple, Callable
from typing import Union, Tuple, Callable, FrozenSet
from .connections import Connection as _Connection
from .constants import FIELD_TYPE as FIELD_TYPE
@@ -30,7 +30,7 @@ threadsafety: int
apilevel: str
paramstyle: str
class DBAPISet(frozenset[int]):
class DBAPISet(FrozenSet[int]):
def __ne__(self, other) -> bool: ...
def __eq__(self, other) -> bool: ...
def __hash__(self) -> int: ...