Skip to content

feat: Support unpacking in dict comprehensions#475

Open
mushitoriami wants to merge 1 commit into
mkdocstrings:mainfrom
mushitoriami:feat-dictcomp-unpack
Open

feat: Support unpacking in dict comprehensions#475
mushitoriami wants to merge 1 commit into
mkdocstrings:mainfrom
mushitoriami:feat-dictcomp-unpack

Conversation

@mushitoriami

Copy link
Copy Markdown
Contributor

For reviewers

  • I did not use AI
  • I used AI and thoroughly reviewed every code/docs change

Description of the change

Add support for Unpacking in Comprehensions, which is introduced in Python 3.15 (PEP 798).

This PR also resolves the following failures in Python 3.15 environments type checking:

packages/griffelib/src/griffe/_internal/expressions.py:1264:16: error[invalid-argument-type] Argument to function `_build` is incorrect: Expected `AST`, found `expr | None`

Relevant resources

Add support for Unpacking in Comprehensions, which is introduced in Python 3.15 (PEP 798).

This PR also resolves the following failures in Python 3.15 environments type checking:
```
packages/griffelib/src/griffe/_internal/expressions.py:1264:16: error[invalid-argument-type] Argument to function `_build` is incorrect: Expected `AST`, found `expr | None`
```

ref: https://github.com/mkdocstrings/griffe/actions/runs/28114520110/job/83250363149#step:9:23
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

Successfully merging this pull request may close these issues.

1 participant