8000 darglint2 throws DAR000 unexpected exception with Python 3.14 · Issue #44 · akaihola/darglint2 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
darglint2 throws DAR000 unexpected exception with Python 3.14 #44
Open
@xqt

Description

@xqt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0