Skip to content

Commit

Permalink
Ensure compatibility with Python 3.12+ for
Browse files Browse the repository at this point in the history
etwork_test.py
  • Loading branch information
realshouzy committed May 16, 2024
1 parent 797ed54 commit 08a2bcb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/network_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,20 @@
from __future__ import annotations

import random
import sys
import time
from typing import Final, override
from typing import Final

import pytest

from nrw.network import Client, Connection, Server

if sys.version_info >= (3, 12): # pragma: >=3.12 cover
from typing import override
else: # pragma: <3.12 cover
from typing_extensions import override


LOCALHOST: Final[str] = "127.0.0.1"

# pylint: disable=C0115, E1101
Expand Down

0 comments on commit 08a2bcb

Please sign in to comment.