Skip to content

Commit

Permalink
chore: 🚨 Fix MyPy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
robvanderleek committed Dec 7, 2024
1 parent d5ea049 commit 79997a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions codelimit/common/gsm/Pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def consume(self, item) -> State | None:
self.tokens.append(item)
self.state = transition[1]
return self.state
return None

def is_accepting(self):
return self.automata.is_accepting(self.state)
Expand Down
4 changes: 2 additions & 2 deletions codelimit/common/report/ReportReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@

class ReportReader:
@staticmethod
def get_report_version(json: str) -> str:
def get_report_version(json: str) -> Optional[str]:
d = loads(json)
return d["version"] if "version" in d else None

@staticmethod
def from_json(json: str) -> Optional[Report]:
def from_json(json: str) -> Report:
d = loads(json)
codebase = Codebase(d["root"])
report = Report(codebase)
Expand Down

0 comments on commit 79997a3

Please sign in to comment.