Open xqt opened 2 months ago
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.
Hi @xqt, Interesting!
May I ask why do you prefer to use darglint2 over the Recommended alternatives (from the README)?
darglint2
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
The code can be found here.