Skip to content

Commit

Permalink
Add mypy ignore, separate import try-except blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
tuokri committed Jan 25, 2025
1 parent 131f961 commit 59252e5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bobuild/typing_bo.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
try:
from typing import overload
from typing import override
from typing import overload # type: ignore[attr-defined]
except ImportError:
from typing_extensions import overload
try:
from typing import override # type: ignore[attr-defined]
except ImportError:
from typing_extensions import override

__all__ = [
Expand Down

0 comments on commit 59252e5

Please sign in to comment.