Skip to content

Commit f2f63e8

Browse files
Fixed python 3.10 errors
1 parent ed895d3 commit f2f63e8

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

can/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import logging
99
from typing import Any, Dict
1010

11-
__version__ = "4.3.1"
11+
__version__ = "4.3.2"
1212
__all__ = [
1313
"ASCReader",
1414
"ASCWriter",

can/io/generic.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
cast,
1717
)
1818

19-
from typing_extensions import Self
20-
2119
from .. import typechecking
2220
from ..listener import Listener
2321
from ..message import Message
@@ -66,7 +64,7 @@ def __init__(
6664
# for multiple inheritance
6765
super().__init__()
6866

69-
def __enter__(self) -> Self:
67+
def __enter__(self):
7068
return self
7169

7270
def __exit__(

can/io/logger.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
cast,
2323
)
2424

25-
from typing_extensions import Self
26-
2725
from .._entry_points import read_entry_points
2826
from ..message import Message
2927
from ..typechecking import AcceptedIOType, FileLike, StringPathLike
@@ -283,7 +281,7 @@ def stop(self) -> None:
283281
"""
284282
self.writer.stop()
285283

286-
def __enter__(self) -> Self:
284+
def __enter__(self):
287285
return self
288286

289287
def __exit__(

0 commit comments

Comments
 (0)