Skip to content

Commit 2e245f6

Browse files
removed TYPE_CHECKING guard
1 parent 4724042 commit 2e245f6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

monitor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,9 +1014,8 @@ def parse_entry(self, line: bytes) -> MutableMapping[str, Any]: # noqa: C901, C
10141014
for c in entry[changes]:
10151015
category = self.category(c['Type'])
10161016
name = self.canonicalise(c['Name'])
1017-
if TYPE_CHECKING:
1018-
# Cheaty "its fine I promise" for TypedDict
1019-
category = cast(Literal['Component', 'Data', 'Consumable', 'Item'], category)
1017+
# Cheaty "its fine I promise" for TypedDict
1018+
category = cast(Literal['Component', 'Data', 'Consumable', 'Item'], category)
10201019

10211020
if changes == 'Removed':
10221021
self.state['BackPack'][category][name] -= c['Count']
@@ -1407,6 +1406,7 @@ def parse_entry(self, line: bytes) -> MutableMapping[str, Any]: # noqa: C901, C
14071406

14081407
for category in ('Raw', 'Manufactured', 'Encoded'):
14091408
category = cast(Literal['Raw', 'Manufactured', 'Encoded'], category)
1409+
14101410
for x in entry.get('Ingredients', []):
14111411
material = self.canonicalise(x['Name'])
14121412
if material in self.state[category]:

0 commit comments

Comments
 (0)