Skip to content
Snippets Groups Projects

Fix return state of _is_sunchronous method.

Open Wieslaw Kedzierski requested to merge wkedzierski/fix-is_synchronous into develop
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -206,7 +206,7 @@ class AbstractAsyncHandle(ABC, AbstractHandle, ContextAsync[Self]): # type: ign
"""Does nothing."""
def _is_synchronous(self) -> bool:
return True
return False
class AbstractSyncHandle(ABC, AbstractHandle, ContextSync[Self]): # type: ignore[misc]
@@ -231,4 +231,4 @@ class AbstractSyncHandle(ABC, AbstractHandle, ContextSync[Self]): # type: ignor
"""Does nothing."""
def _is_synchronous(self) -> bool:
return False
return True
Loading