mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-24 08:58:46 +00:00
chore(python): remove inner parenthesis from type: ignore to silence mypy syntax errors
This commit is contained in:
parent
5a684cd5e3
commit
3f520b4ce2
@ -166,7 +166,7 @@ class Field:
|
|||||||
if self._py_type is None:
|
if self._py_type is None:
|
||||||
self._py_type = self._resolve_type()
|
self._py_type = self._resolve_type()
|
||||||
# pyright issue https://github.com/microsoft/pyright/issues/8136
|
# pyright issue https://github.com/microsoft/pyright/issues/8136
|
||||||
return self._py_type # type: ignore [Type ["Unknown | None"]]
|
return self._py_type # type: ignore [Type "Unknown | None"]
|
||||||
|
|
||||||
def _resolve_type(self) -> type:
|
def _resolve_type(self) -> type:
|
||||||
# look for a type in the builtins
|
# look for a type in the builtins
|
||||||
|
Loading…
Reference in New Issue
Block a user