mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-21 19:32:13 +08:00
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:
committed by
GitHub
parent
1c8c6ec7d9
commit
8b5d4708a0
4
third_party/2and3/pymysql/__init__.pyi
vendored
4
third_party/2and3/pymysql/__init__.pyi
vendored
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user