Skip to content

Commit a342955

Browse files
authored
Merge pull request #8 from black-sliver/patch-1
Fix type annotations for py3.8
2 parents e389005 + 7001ef8 commit a342955

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

factorio_rcon/_factorio_rcon.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import socket
55
import struct
66
from types import TracebackType
7-
from typing import Any, Callable, Dict, NamedTuple, Optional, TypeVar, cast
7+
from typing import Any, Callable, Dict, NamedTuple, Optional, Type, TypeVar, cast
88

99
try:
1010
import anyio
@@ -413,7 +413,7 @@ def __enter__(self) -> "RCONClient":
413413

414414
def __exit__(
415415
self,
416-
exc_type: Optional[type[BaseException]],
416+
exc_type: Optional[Type[BaseException]],
417417
exc_value: Optional[BaseException],
418418
traceback: Optional[TracebackType],
419419
) -> None:
@@ -642,7 +642,7 @@ async def __aenter__(self) -> "AsyncRCONClient":
642642

643643
async def __aexit__(
644644
self,
645-
exc_type: Optional[type[BaseException]],
645+
exc_type: Optional[Type[BaseException]],
646646
exc_value: Optional[BaseException],
647647
traceback: Optional[TracebackType],
648648
) -> None:

0 commit comments

Comments
 (0)