summaryrefslogtreecommitdiff
path: root/logilab/common/optik_ext.py
diff options
context:
space:
mode:
Diffstat (limited to 'logilab/common/optik_ext.py')
-rw-r--r--logilab/common/optik_ext.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/logilab/common/optik_ext.py b/logilab/common/optik_ext.py
index d044855..0f69884 100644
--- a/logilab/common/optik_ext.py
+++ b/logilab/common/optik_ext.py
@@ -149,8 +149,7 @@ def check_named(
def check_password(option, opt, value):
- """check a password value (can't be empty)
- """
+ """check a password value (can't be empty)"""
# no actual checking, monkey patch if you want more
return value
@@ -208,8 +207,7 @@ def check_bytes(option: Optional["Option"], opt: str, value: Any) -> int:
class Option(BaseOption):
- """override optik.Option to add some new option types
- """
+ """override optik.Option to add some new option types"""
TYPES = BaseOption.TYPES + (
"regexp",
@@ -286,8 +284,7 @@ class Option(BaseOption):
class OptionParser(BaseParser):
- """override optik.OptionParser to use our Option class
- """
+ """override optik.OptionParser to use our Option class"""
def __init__(self, option_class: type = Option, *args: Any, **kwargs: Any) -> None:
# mypy: Argument "option_class" to "__init__" of "OptionParser" has incompatible type