Skip to content

Commit b557366

Browse files
committed
Use type instead of typing.Type etc
1 parent feb6dd0 commit b557366

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

pymunk/_pyglet15_util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
import math
3636
import warnings
37-
from typing import TYPE_CHECKING, Any, Optional, Sequence, Type
37+
from typing import TYPE_CHECKING, Any, Optional, Sequence
3838

3939
import pyglet # type: ignore
4040

@@ -108,7 +108,7 @@ def __enter__(self) -> None:
108108

109109
def __exit__(
110110
self,
111-
type: Optional[Type[BaseException]],
111+
type: Optional[type[BaseException]],
112112
value: Optional[BaseException],
113113
traceback: Optional["TracebackType"],
114114
) -> None:

pymunk/pyglet_util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
__docformat__ = "reStructuredText"
3434

3535
import math
36-
from typing import TYPE_CHECKING, Any, Optional, Sequence, Type
36+
from typing import TYPE_CHECKING, Any, Optional, Sequence
3737

3838
import pyglet
3939

@@ -99,7 +99,7 @@ def __enter__(self) -> None:
9999

100100
def __exit__(
101101
self,
102-
type: Optional[Type[BaseException]],
102+
type: Optional[type[BaseException]],
103103
value: Optional[BaseException],
104104
traceback: Optional["TracebackType"],
105105
) -> None:

pymunk/space_debug_draw_options.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
__docformat__ = "reStructuredText"
22

3-
from typing import TYPE_CHECKING, ClassVar, NamedTuple, Optional, Sequence, Type
3+
from typing import TYPE_CHECKING, ClassVar, NamedTuple, Optional, Sequence
44

55
if TYPE_CHECKING:
66
from .shapes import Shape
@@ -188,7 +188,7 @@ def __enter__(self) -> None:
188188

189189
def __exit__(
190190
self,
191-
type: Optional[Type[BaseException]],
191+
type: Optional[type[BaseException]],
192192
value: Optional[BaseException],
193193
traceback: Optional["TracebackType"],
194194
) -> None:

0 commit comments

Comments
 (0)