diff --git a/mypy/checkexpr.py b/mypy/checkexpr.py index 8cdc8282a1e5..786d9379db88 100644 --- a/mypy/checkexpr.py +++ b/mypy/checkexpr.py @@ -175,7 +175,7 @@ # Type of callback user for checking individual function arguments. See # check_args() below for details. ArgChecker: _TypeAlias = Callable[ - [Type, Type, ArgKind, Type, int, int, CallableType, Optional[Type], Context, Context], None, + [Type, Type, ArgKind, Type, int, int, CallableType, Optional[Type], Context, Context], None ] # Maximum nesting level for math union in overloads, setting this to large values diff --git a/mypy/config_parser.py b/mypy/config_parser.py index bc9f75f419e1..00823b515fed 100644 --- a/mypy/config_parser.py +++ b/mypy/config_parser.py @@ -33,7 +33,13 @@ from mypy.options import PER_MODULE_OPTIONS, Options _CONFIG_VALUE_TYPES: _TypeAlias = Union[ - str, bool, int, float, Dict[str, str], List[str], Tuple[int, int], + str, + bool, + int, + float, + Dict[str, str], + List[str], + Tuple[int, int], ] _INI_PARSER_CALLABLE: _TypeAlias = Callable[[Any], _CONFIG_VALUE_TYPES] diff --git a/mypy/nodes.py b/mypy/nodes.py index 20236b97fba9..8484e212f9a7 100644 --- a/mypy/nodes.py +++ b/mypy/nodes.py @@ -2040,7 +2040,10 @@ class RevealExpr(Expression): local_nodes: Optional[List[Var]] def __init__( - self, kind: int, expr: Optional[Expression] = None, local_nodes: Optional[List[Var]] = None + self, + kind: int, + expr: Optional[Expression] = None, + local_nodes: Optional[List[Var]] = None, ) -> None: super().__init__() self.expr = expr diff --git a/mypy/report.py b/mypy/report.py index 375f63b1d463..e9a83a2819f1 100644 --- a/mypy/report.py +++ b/mypy/report.py @@ -45,7 +45,7 @@ ) ReporterClasses: _TypeAlias = Dict[ - str, Tuple[Callable[["Reports", str], "AbstractReporter"], bool], + str, Tuple[Callable[["Reports", str], "AbstractReporter"], bool] ] reporter_classes: Final[ReporterClasses] = {} diff --git a/mypy/semanal_main.py b/mypy/semanal_main.py index 8ecb99344a69..99131366e143 100644 --- a/mypy/semanal_main.py +++ b/mypy/semanal_main.py @@ -110,7 +110,10 @@ def cleanup_builtin_scc(state: State) -> None: def semantic_analysis_for_targets( - state: State, nodes: List[FineGrainedDeferredNode], graph: Graph, saved_attrs: SavedAttributes + state: State, + nodes: List[FineGrainedDeferredNode], + graph: Graph, + saved_attrs: SavedAttributes, ) -> None: """Semantically analyze only selected nodes in a given module. diff --git a/pyproject.toml b/pyproject.toml index 95f65599a130..f797b8da7afd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,6 @@ build-backend = "setuptools.build_meta" [tool.black] line-length = 99 target-version = ['py37'] -skip-magic-trailing-comma = true extend-exclude = ''' ^/mypy/typeshed| ^/mypyc/test-data|