Skip to content

Commit 7e8a0ab

Browse files
committed
fix linting
1 parent eccce47 commit 7e8a0ab

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

qbreader/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class Directive(enum.StrEnum):
101101

102102

103103
class Year(enum.IntEnum):
104-
"""Min/max year enum"""
104+
"""Min/max year enum."""
105105

106106
MIN_YEAR = 2010
107107
CURRENT_YEAR = 2024

tests/test_types.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Test the types, classes, and structures used by the qbreader library."""
22

33
import qbreader as qb
4-
from qbreader.types import Bonus, Tossup, PacketMetadata, SetMetadata
4+
from qbreader.types import Bonus, PacketMetadata, SetMetadata, Tossup
55

66

77
class TestTossup:
@@ -136,7 +136,9 @@ def test_iter(self):
136136
class TestPacketMetadata:
137137
"""Test the PacketMetadata class."""
138138

139-
packetMetadata = PacketMetadata.from_json(TestTossup.tu_json["packet"])
139+
packetMetadata = PacketMetadata.from_json(
140+
TestTossup.tu_json["packet"] # type: ignore
141+
)
140142

141143
def test_eq(self):
142144
"""Test the __eq__ method."""
@@ -152,7 +154,7 @@ def test_str(self):
152154
class TestSetMetadata:
153155
"""Test the SetMetadata class."""
154156

155-
setMetadata = SetMetadata.from_json(TestTossup.tu_json["set"])
157+
setMetadata = SetMetadata.from_json(TestTossup.tu_json["set"]) # type: ignore
156158

157159
def test_eq(self):
158160
"""Test the __eq__ method."""

0 commit comments

Comments
 (0)