Skip to content

typing.Literal isn't supported properly on Python 3.9.0 #103

@Fatal1ty

Description

@Fatal1ty
  • mashumaro version: 3.7
  • Python version: 3.9.0
  • Operating System: macOS 13.2.1

Description

Function is_literal doesn't return True for typing.Literal[42] on Python 3.9.0. Type of typing.Literal instances has been changed from _GenericAlias to _LiteralGenericAlias since 3.9.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions