From dc8e7146abdf7cc4a203dfc3ac370ae406c2c5ba Mon Sep 17 00:00:00 2001 From: Mikko Korpela Date: Sat, 15 Oct 2022 23:20:20 +0300 Subject: [PATCH] Bump version to 7.3.0 --- overrides/__init__.py | 1 + overrides/overrides.py | 6 ++++-- overrides/typing_utils.py | 8 ++++++-- setup.py | 6 ++++-- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/overrides/__init__.py b/overrides/__init__.py index ed32dfb..28ed08f 100644 --- a/overrides/__init__.py +++ b/overrides/__init__.py @@ -6,6 +6,7 @@ else: from typing import final from overrides.overrides import __VERSION__, overrides + override = overrides __all__ = [ diff --git a/overrides/overrides.py b/overrides/overrides.py index 4a1e958..42ca48c 100644 --- a/overrides/overrides.py +++ b/overrides/overrides.py @@ -21,7 +21,7 @@ from types import FunctionType from typing import Callable, List, Optional, Tuple, TypeVar, Union, overload -__VERSION__ = "7.2.0" +__VERSION__ = "7.3.0" from overrides.signature import ensure_signature_is_compatible @@ -95,7 +95,9 @@ def method(self): def _overrides( - method: _WrappedMethod, check_signature: bool, check_at_runtime: bool, + method: _WrappedMethod, + check_signature: bool, + check_at_runtime: bool, ) -> _WrappedMethod: setattr(method, "__override__", True) global_vars = getattr(method, "__globals__", None) diff --git a/overrides/typing_utils.py b/overrides/typing_utils.py index 2d9f919..9503124 100644 --- a/overrides/typing_utils.py +++ b/overrides/typing_utils.py @@ -291,7 +291,9 @@ def _is_origin_subtype(left: OriginType, right: OriginType) -> bool: NormalizedTypeArgs = typing.Union[ - typing.Tuple[typing.Any, ...], typing.FrozenSet[NormalizedType], NormalizedType, + typing.Tuple[typing.Any, ...], + typing.FrozenSet[NormalizedType], + NormalizedType, ] @@ -416,7 +418,9 @@ def _is_normal_subtype( def issubtype( - left: Type, right: Type, forward_refs: typing.Optional[dict] = None, + left: Type, + right: Type, + forward_refs: typing.Optional[dict] = None, ) -> typing.Optional[bool]: """Check that the left argument is a subtype of the right. For unions, check if the type arguments of the left is a subset of the right. diff --git a/setup.py b/setup.py index 9ded339..43a5d0f 100644 --- a/setup.py +++ b/setup.py @@ -17,14 +17,16 @@ setup( name="overrides", - version="7.2.0", + version="7.3.0", description=desc, long_description=LONG_DESCRIPTION, author=name, author_email=address, url="https://github.com/mkorpela/overrides", packages=find_packages(), - package_data={"overrides": ["*.pyi", "py.typed"],}, + package_data={ + "overrides": ["*.pyi", "py.typed"], + }, include_package_data=True, install_requires=['typing;python_version<"3.5"'], python_requires=">=3.6",