Skip to content

Assign expression / walrus operator is 3.8+ #9820

@nickdrozd

Description

@nickdrozd

Current problem

if (x := f()): ... was introduced in Python 3.8.

Desired solution

If py-version < 3.8, flag it.

Additional context

No response

Metadata

Metadata

Labels

Assignment expressionRelated to the walrus operator / assignment expressionEnhancement ✨Improvement to a componentNeeds PRThis issue is accepted, sufficiently specified and now needs an implementationpy-versionpython 3.8

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions