stdlib: enforce CamelCase for type alias names (#8255)

This commit is contained in:
Alex Waygood
2022-07-07 16:45:23 +01:00
committed by GitHub
parent abea36c069
commit fbddd2c4e2
11 changed files with 107 additions and 108 deletions

View File

@@ -145,7 +145,7 @@ class PickleError(Exception): ...
class PicklingError(PickleError): ...
class UnpicklingError(PickleError): ...
_reducedtype: TypeAlias = Union[
_ReducedType: TypeAlias = Union[
str,
tuple[Callable[..., Any], tuple[Any, ...]],
tuple[Callable[..., Any], tuple[Any, ...], Any],
@@ -155,7 +155,7 @@ _reducedtype: TypeAlias = Union[
class Pickler:
fast: bool
dispatch_table: Mapping[type, Callable[[Any], _reducedtype]]
dispatch_table: Mapping[type, Callable[[Any], _ReducedType]]
bin: bool # undocumented
dispatch: ClassVar[dict[type, Callable[[Unpickler, Any], None]]] # undocumented, _Pickler only