Skip to content

Commit b2a1bb1

Browse files
removed TYPE_CHECKING guard
1 parent bed2bb1 commit b2a1bb1

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
@@ -1009,9 +1009,8 @@ def parse_entry(self, line: bytes) -> MutableMapping[str, Any]: # noqa: C901, C
10091009
for c in entry[changes]:
10101010
category = self.category(c['Type'])
10111011
name = self.canonicalise(c['Name'])
1012-
if TYPE_CHECKING:
1013-
# Cheaty "its fine I promise" for TypedDict
1014-
category = cast(Literal['Component', 'Data', 'Consumable', 'Item'], category)
1012+
# Cheaty "its fine I promise" for TypedDict
1013+
category = cast(Literal['Component', 'Data', 'Consumable', 'Item'], category)
10151014

10161015
if changes == 'Removed':
10171016
self.state['BackPack'][category][name] -= c['Count']
@@ -1402,6 +1401,7 @@ def parse_entry(self, line: bytes) -> MutableMapping[str, Any]: # noqa: C901, C
14021401

14031402
for category in ('Raw', 'Manufactured', 'Encoded'):
14041403
category = cast(Literal['Raw', 'Manufactured', 'Encoded'], category)
1404+
14051405
for x in entry.get('Ingredients', []):
14061406
material = self.canonicalise(x['Name'])
14071407
if material in self.state[category]:

0 commit comments

Comments
 (0)