Skip to content

Commit

Permalink
Bump version to 7.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorpela committed Oct 15, 2022
1 parent e616215 commit dc8e714
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
1 change: 1 addition & 0 deletions overrides/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
else:
from typing import final
from overrides.overrides import __VERSION__, overrides

override = overrides

__all__ = [
Expand Down
6 changes: 4 additions & 2 deletions overrides/overrides.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down
8 changes: 6 additions & 2 deletions overrides/typing_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]


Expand Down Expand Up @@ -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.
Expand Down
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit dc8e714

Please sign in to comment.