hashberg-io / typing-validation

A simple library for runtime type-checking.
https://typing-validation.readthedocs.io/
MIT License
7 stars 4 forks source link

Poor formatting of `TypeInspector` on `TypedDict` #8

Closed sg495 closed 10 months ago

sg495 commented 10 months ago
>>> from typing_validation import can_validate
>>> from typing import TypedDict
>>> class A(TypedDict):
...     x: int
...     y: float
...
>>> class B(A):
...     z: list[str]
...
>>> can_validate(B)
The following type can be validated against:
B[
x:     int
y:     float
z:     list[
        str
    ]
]