Skip to content

Type Hints: Use typing.ClassVar for Packet.fields_desc #4991

@MarshTheBacca

Description

@MarshTheBacca

Packet.fields_desc is currently hinted with # type: List[AnyField], which results in a tooling conflict with RUFF012.

Suggestion - import typing.ClassVar and apply the type hint to fields_desc like so: # type: ClassVar[List[AnyField]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions