Skip to content

keys with spaces not handled correctly #2

@graingert

Description

@graingert

json with spaces in the keys

{
    "example with space": 1
}

becomes:

from __future__ import annotations
from dataclasses import dataclass

@dataclass
class UnnammedType53F4C8:
    example with space: int

however this works fine with a TypedDict:

from typing import TypedDict

UnnammedType160988 = TypedDict("UnnammedType160988", {"example with space": int})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions