From 1ea7ee9fdb60f3edd8067875bf668975337def15 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Mon, 13 Oct 2025 22:58:52 +0200 Subject: [PATCH] typing fixed --- src/copapy/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/copapy/__init__.py b/src/copapy/__init__.py index 5620b0b..df94ebb 100644 --- a/src/copapy/__init__.py +++ b/src/copapy/__init__.py @@ -24,7 +24,7 @@ def stencil_db_from_package(arch: str = 'native', optimization: str = 'O3') -> s generic_sdb = stencil_db_from_package() -def transl_type(t: str): +def transl_type(t: str) -> str: return {'bool': 'int'}.get(t, t) @@ -89,13 +89,13 @@ class Net: def __eq__(self, other: Any) -> 'Net': # type: ignore 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) def __ne__(self, other: Any) -> 'Net': # type: ignore 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) def __mod__(self, other: Any) -> 'Net':