nteract/papermill
GitHub ã§èŠãPython parameter with `None | ` union type is logged as unknown
Open
#806 opened on 2024幎9æ5æ¥
bughelp wanted
Repository metrics
- Stars
- Â (5,381 stars)
- PR merge metrics
-  (30d ã« merged PR ã¯ãããŸãã)
説æ
ð Bug
# template.ipynb parameters block
foo: None|str = None
$ papermill -p foo BAR ...
Passed unknown parameter: foo
Expected: this warning not to show up, foo should be recognized as a valid parameter.
Also note:
- Despite the warning, the above example still properly injects the parameter value
Optional[str]does not suffer from this issue, just type union stylestr|None(change the type order) produces the same warning log
papermill version == 2.6.0