Skip to content

Commit

Permalink
Fix Mypy failure due to overlapping overload
Browse files Browse the repository at this point in the history
It seems Python 3.11 is not yet fully supported by Mypy and "pytest-mypy-plugins".
  • Loading branch information
Delgan committed Oct 2, 2022
1 parent 3d8631e commit 3767d3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion loguru/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ class Logger:
def remove(self, handler_id: Optional[int] = ...) -> None: ...
def complete(self) -> AwaitableCompleter: ...
@overload
def catch(
def catch( # type: ignore[misc]
self,
exception: Union[Type[BaseException], Tuple[Type[BaseException], ...]] = ...,
*,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
# Testing framework.
"pytest>=4.6.2",
"pytest-cov>=2.7.1",
"pytest-mypy-plugins>=1.2.0 ; python_version>='3.6'",
"pytest-mypy-plugins>=1.2.0 ; python_version>='3.6,<3.11'",
# Testing utils.
"colorama>=0.3.4",
"freezegun>=1.1.0",
Expand Down

0 comments on commit 3767d3b

Please sign in to comment.