Skip to content

False-Positive Type Errors in Register #511

Description

@PigBrainOverflow

Hi developers of Pyrtl!

Inside conditional_assignment context, reg.next |= value will cause
Cannot assign to attribute "next" for class "Register" Argument of type "_Next" cannot be assigned to parameter "value" of type ...

The code is valid at runtime and I use Pyright with strict type checking mode.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions