implement explicit Optional type hints for =None parameters
Thanks https://github.com/hauntsaninja/no_implicit_optional
This commit is contained in:
parent
669c82a10b
commit
82a87e7ea9
15 changed files with 34 additions and 27 deletions
|
@ -22,7 +22,7 @@ class BinaryPackage(PackageInfo):
|
|||
name: str,
|
||||
version: str,
|
||||
filename: str,
|
||||
resolved_url: str = None,
|
||||
resolved_url: Optional[str] = None,
|
||||
):
|
||||
self.name = name
|
||||
self.version = version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue