From 0e803bc8810a07fc839f28b030d34d6d099846f7 Mon Sep 17 00:00:00 2001 From: Stefan Binder Date: Sat, 30 Sep 2023 16:56:36 +0200 Subject: [PATCH] Black and ruff --- altair/vegalite/v5/api.py | 2 +- tools/generate_schema_wrapper.py | 2 +- tools/schemapi/codegen.py | 3 +-- tools/schemapi/utils.py | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/altair/vegalite/v5/api.py b/altair/vegalite/v5/api.py index 8a8e477da..6726c54cb 100644 --- a/altair/vegalite/v5/api.py +++ b/altair/vegalite/v5/api.py @@ -185,7 +185,7 @@ def _get_channels_mapping(): # Tools for working with parameters class Parameter(expr.core.OperatorMixin, object): """A Parameter object""" - + # NOTE: If you change this class, make sure that the protocol in # altair/vegalite/v5/schema/core.py is updated accordingly if needed. diff --git a/tools/generate_schema_wrapper.py b/tools/generate_schema_wrapper.py index 94a4da869..a7284c357 100644 --- a/tools/generate_schema_wrapper.py +++ b/tools/generate_schema_wrapper.py @@ -43,7 +43,7 @@ CHANNEL_MYPY_IGNORE_STATEMENTS: Final = """\ # These errors need to be ignored as they come from the overload methods # which trigger two kind of errors in mypy: -# * all of them do not have an implementation in this file +# * all of them do not have an implementation in this file # * some of them are the only overload methods -> overloads usually only make # sense if there are multiple ones # However, we need these overloads due to how the propertysetter works diff --git a/tools/schemapi/codegen.py b/tools/schemapi/codegen.py index 9a6f076d4..c5603deeb 100644 --- a/tools/schemapi/codegen.py +++ b/tools/schemapi/codegen.py @@ -8,9 +8,8 @@ SchemaInfo, is_valid_identifier, indent_docstring, - SchemaProperties, jsonschema_to_python_types, - flatten + flatten, ) diff --git a/tools/schemapi/utils.py b/tools/schemapi/utils.py index 084126b19..bcfed58f1 100644 --- a/tools/schemapi/utils.py +++ b/tools/schemapi/utils.py @@ -4,7 +4,7 @@ import re import textwrap import urllib -from typing import Final, Optional, List, Dict, Any, Iterable, Literal, overload +from typing import Final, Optional, List, Dict, Any, Iterable from .schemapi import _resolve_references as resolve_references