mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-14 20:44:32 +02:00
ty does not enforce existence of type signatures on functions, so use ruff to do it
This commit is contained in:
6
.github/workflows/macos_crash_report.py
vendored
6
.github/workflows/macos_crash_report.py
vendored
@@ -285,7 +285,7 @@ class CrashReportBase:
|
||||
self._data = data
|
||||
self._parse()
|
||||
|
||||
def _parse(self):
|
||||
def _parse(self) -> None:
|
||||
self._is_json = False
|
||||
try:
|
||||
modified_data = self._data
|
||||
@@ -307,7 +307,7 @@ class CrashReportBase:
|
||||
return self._metadata['bug_type']
|
||||
|
||||
@cached_property
|
||||
def incident_id(self):
|
||||
def incident_id(self) -> str:
|
||||
return self._metadata.get('incident_id')
|
||||
|
||||
@cached_property
|
||||
@@ -428,7 +428,7 @@ class UserModeCrashReport(CrashReportBase):
|
||||
return result
|
||||
|
||||
@cached_property
|
||||
def exception_type(self):
|
||||
def exception_type(self) -> str:
|
||||
if self._is_json:
|
||||
return self._data['exception'].get('type')
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user