bug: error when parameter with type hint Any
has a default value of None
#21
Labels
bug
Something isn't working
Any
has a default value of None
#21
Describe the bug
A parameter with type hint of
Any
and a default value ofNone
results in linter error BCS023. (This is related to the new functionality from #17.) However,None
is a valid value for a type hint ofAny
and therefore this should be allowed.To reproduce
Define a function parameter with a type hint of
Any
and a default value ofNone
, e.g.previous_value
here:results in this error:
Expected behavior
No error.
Screenshots or logs
If applicable, add screenshots or logs to help explain your problem.
System information
A description of your system. Please provide:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: