The function argument is equal to the default parameter value
Reports a problem when an argument passed to the function is equal to the default parameter value.
This inspection is disabled by default to avoid performance degradation.
Example:
def my_function(a: int = 2):
print(a)
my_function(2)
Inspection Details | |
---|---|
Available in: | DataSpell 2023.3, PyCharm 2023.3 |
Plugin: | Python Community Edition, 233.SNAPSHOT |
Last modified: 13 July 2023