Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

darglint2 throws DAR000 unexpected exception with Python 3.14 #44

Open
xqt opened this issue Jun 30, 2024 · 3 comments
Open

darglint2 throws DAR000 unexpected exception with Python 3.14 #44

xqt opened this issue Jun 30, 2024 · 3 comments

Comments

@xqt
Copy link

xqt commented Jun 30, 2024

There are no such issus with Python 3.7 - 3.13 but 3.14.0a0 fails:
https://github.com/wikimedia/pywikibot/actions/runs/9730971025/job/26854787807

Run python --version
  python --version
  flake8 --version
  flake8 --color always --doctests
  shell: /usr/bin/bash -e {0}
  env:
    PYWIKIBOT_TEST_RUNNING: 1
    PYWIKIBOT_NO_USER_CONFIG: [2](https://github.com/wikimedia/pywikibot/actions/runs/9730971025/job/26854787807#step:6:2)
Python 3.14.0a0
7.1.0 (darglint2: 1.8.2, flake8-bugbear: 24.4.26, flake8-comprehensions:
[3](https://github.com/wikimedia/pywikibot/actions/runs/9730971025/job/26854787807#step:6:3).15.0, flake8-docstrings: 1.7.0, flake8-future-annotations: 1.1.0,
flake8-mock-x2: 0.[4](https://github.com/wikimedia/pywikibot/actions/runs/9730971025/job/26854787807#step:6:4).1, flake8-no-u-prefixed-strings: 0.2, flake8-print: [5](https://github.com/wikimedia/pywikibot/actions/runs/9730971025/job/26854787807#step:6:5).0.0,
flake8-quotes: 3.4.0, flake8-raise: 0.0.5, flake8-tuple: 0.4.1, mccabe: 0.[7](https://github.com/wikimedia/pywikibot/actions/runs/9730971025/job/26854787807#step:6:7).0,
pep8-naming: 0.14.1, pycodestyle: 2.12.0, pyflakes: 3.2.0) CPython 3.14.0a0 on
Linux
./pywikibot/tools/collections.py: line 1:1: DAR000: Unexpected exception in darglint2: 'FunctionDescription' object has no attribute 'docstring'
./pywikibot/userinterfaces/_interface_base.py: line 1:1: DAR000: Unexpected exception in darglint2: 'FunctionDescription' object has no attribute 'docstring'
2

The code can be found here.

@akaihola
Copy link
Owner

akaihola commented Aug 9, 2024

Hi @xqt,
Interesting!

May I ask why do you prefer to use darglint2 over the Recommended alternatives (from the README)?

@xqt
Copy link
Author

xqt commented Dec 14, 2024

Hi @xqt, Interesting!

May I ask why do you prefer to use darglint2 over the Recommended alternatives (from the README)?

Moved to docsig in meatime. The reason can be found in Task T378801. You may close this issue.

@akaihola
Copy link
Owner

If this error continues to occur in the to-be-released Python 3.14, darglint2 package metadata should be modified to mark incompatibility with Python 3.14. Let's wait.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants