Skip to content

Commit 9068e4e

Browse files
synaretephlogistonjohn
authored andcommitted
sambacc: fixed mypy-0.990 errors
Fixed errors detected by mypy-0.99. See also: python/mypy#9091 Signed-off-by: Shachar Sharon <[email protected]>
1 parent b4d2532 commit 9068e4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sambacc/commands/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def _wrapper(f):
108108
return _wrapper
109109

110110
def assemble(
111-
self, arg_func: typing.Callable = None
111+
self, arg_func: typing.Optional[typing.Callable] = None
112112
) -> argparse.ArgumentParser:
113113
parser = argparse.ArgumentParser()
114114
if arg_func is not None:

sambacc/ctdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,4 +545,4 @@ def __enter__(self) -> CLILeaderStatus:
545545
def __exit__(
546546
self, exc_type: ExcType, exc_val: ExcValue, exc_tb: ExcTraceback
547547
) -> bool:
548-
pass
548+
return True

0 commit comments

Comments
 (0)