You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.
When using backticks (``) on parameter type for built in type parameters (str, int, list...) and modules (os, re...), the DAR103 error is shown.
This doesn't happen with module classes (os.DirEntry, re.Match...).
Is this working as expected? Or is this a bug?
Reproduction
Create a demo.py file with the following content
asyncdeffoo(
param1: os.DirEntry, # any random classparam2: str,
) ->None:
""" Description here Parameters ---------- param1 : `os.DirEntry` param1 description. param2 : `str` param2 description. """
Execute darglint -s numpy demo.py
Expected result
No errors reported by darglint or errors reported in both parameters.
Actual result
This error is shown by darlint:
demo.py:foo:9: DAR103: ~param2: expected str but was `str`
Versions used
darglint 1.8.1 Python 3.10.2
The text was updated successfully, but these errors were encountered:
Summary
When using backticks (``) on parameter type for built in type parameters (str, int, list...) and modules (os, re...), the DAR103 error is shown.
This doesn't happen with module classes (os.DirEntry, re.Match...).
Is this working as expected? Or is this a bug?
Reproduction
demo.py
file with the following contentdarglint -s numpy demo.py
Expected result
No errors reported by darglint or errors reported in both parameters.
Actual result
This error is shown by darlint:
Versions used
darglint 1.8.1 Python 3.10.2
The text was updated successfully, but these errors were encountered: