Skip to content

Commit 79997a3

Browse files
committed
chore: 🚨 Fix MyPy issues
1 parent d5ea049 commit 79997a3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

β€Žcodelimit/common/gsm/Pattern.pyβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def consume(self, item) -> State | None:
2424
self.tokens.append(item)
2525
self.state = transition[1]
2626
return self.state
27+
return None
2728

2829
def is_accepting(self):
2930
return self.automata.is_accepting(self.state)

β€Žcodelimit/common/report/ReportReader.pyβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010

1111
class ReportReader:
1212
@staticmethod
13-
def get_report_version(json: str) -> str:
13+
def get_report_version(json: str) -> Optional[str]:
1414
d = loads(json)
1515
return d["version"] if "version" in d else None
1616

1717
@staticmethod
18-
def from_json(json: str) -> Optional[Report]:
18+
def from_json(json: str) -> Report:
1919
d = loads(json)
2020
codebase = Codebase(d["root"])
2121
report = Report(codebase)

0 commit comments

Comments
Β (0)