Skip to content

(🐞) False positive / bad fix for PYI015 with typealias in stub file #4036

@KotlinIsland

Description

@KotlinIsland

ruff 0.0.262

unicode = str  # PYI015 [*] Only simple default values allowed for assignments

expected

from typing import TypeAlias
unicode: TypeAlias = str

(Or just leaving it as is)

actual

unicode = ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions