Skip to content

Commit

Permalink
Fix unit tests run on 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsDrike committed May 21, 2024
1 parent 3dbbc18 commit a251811
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mcproto/types/nbt.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ class NBTagType(IntEnum):
bytes,
str,
"NBTag",
Sequence["PayloadType"],
Mapping[str, "PayloadType"],
"Sequence[PayloadType]",
"Mapping[str, PayloadType]",
]
"""Represents the type of a payload that can be stored in an NBT tag."""

Expand Down
7 changes: 6 additions & 1 deletion tests/mcproto/test_multiplayer.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
from __future__ import annotations

import sys
from typing import TYPE_CHECKING
from unittest.mock import Mock

import httpx
import pytest
from pytest_httpx import HTTPXMock

if sys.version_info > (3, 9) or TYPE_CHECKING:
from pytest_httpx import HTTPXMock

from mcproto.multiplayer import (
JoinAcknowledgeData,
Expand Down

0 comments on commit a251811

Please # to comment.