typing fixed

This commit is contained in:
Nicolas 2025-10-13 22:58:52 +02:00
parent 7d5990e2b2
commit 1ea7ee9fdb
1 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ def stencil_db_from_package(arch: str = 'native', optimization: str = 'O3') -> s
generic_sdb = stencil_db_from_package() generic_sdb = stencil_db_from_package()
def transl_type(t: str): def transl_type(t: str) -> str:
return {'bool': 'int'}.get(t, t) return {'bool': 'int'}.get(t, t)
@ -89,13 +89,13 @@ class Net:
def __eq__(self, other: Any) -> 'Net': # type: ignore def __eq__(self, other: Any) -> 'Net': # type: ignore
return _add_op('eq', [self, other], True) return _add_op('eq', [self, other], True)
def __req__(self, other: Any) -> 'Net': # type: ignore def __req__(self, other: Any) -> 'Net':
return _add_op('eq', [self, other], True) return _add_op('eq', [self, other], True)
def __ne__(self, other: Any) -> 'Net': # type: ignore def __ne__(self, other: Any) -> 'Net': # type: ignore
return _add_op('ne', [self, other], True) return _add_op('ne', [self, other], True)
def __rne__(self, other: Any) -> 'Net': # type: ignore def __rne__(self, other: Any) -> 'Net':
return _add_op('ne', [self, other], True) return _add_op('ne', [self, other], True)
def __mod__(self, other: Any) -> 'Net': def __mod__(self, other: Any) -> 'Net':