未验证 提交 3aafc578 编写于 作者: L Luca Di Grazia 提交者: GitHub

Pyre: name has type `str` but is used as type `None` (#1336)

"filename": "pdm/cli/options.py"
"warning_type": "Incompatible variable type [9]",
"warning_message": " name is declared to have type `str` but is used as type `None`.",
"warning_line": 62
"fix": remove none
上级 2631ffac
......@@ -59,7 +59,7 @@ class ArgumentGroup(Option):
def __init__(
self,
name: str = None,
name: str,
is_mutually_exclusive: bool = False,
required: bool = None,
) -> None:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册