ZeroIntensity / view.py

The Batteries-Detachable Web Framework
https://view.zintensity.dev
MIT License
205 stars 15 forks source link

List/Tuple support on type validation #71

Closed ZeroIntensity closed 11 months ago

ZeroIntensity commented 11 months ago

Improvement Description

As of now, the typecode system doesn't work with lists or tuples. Adding this feature would be pretty handy (especially with #10)

Improvement Request Example API

@dataclass()
class MyObject:
    a: List[str]
    b: Tuple[int, int, List[str]]

Anything else?

No response