from dataclasses import dataclass, field
from flutter import checked, check_type
from typing import List
@checked
@dataclass
class Node:
line: int
@checked
@dataclass
class Parent(Node):
children: List[Node] = field(default_factory=list)
assert check_type(Parent, {
'line': 0,
'children': [{'line': 1}]
}) == Parent(line=0, children=[Node(1)])
assert check_type(Parent, {
'line': 10
}) == Parent(line=10, children=[])
Release files for flutter 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flutter-0.1.tar.gz | 8.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flutter-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.4 kB
Release files / flutter-0.1.tar.gz
| Download URL | flutter-0.1.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f19a8b2ebf0a3379792cd064c18e95d6c2ac91d365fbfc1c7f80e5938f586ecd
|
|
BLAKE2b-256 checksum How to use checksums |
0cde136b23d4075219ba36fdd0a8baa44b9e2d2c8ae604c66d2b61d812820cfe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.21.0
|
Release files / flutter-0.1-py3-none-any.whl
| Download URL | flutter-0.1-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13bc3a93a5370c54656252d4dd0e11b48a9cca5b6f02892909d5c560eecb5494
|
|
BLAKE2b-256 checksum How to use checksums |
703f9da3ca46667609ac3ff0c75631a9df8313b95c5b5f3c53f3c4de70a4b005
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.21.0
|