Skip to content

Instantly share code, notes, and snippets.

@rec
Last active August 17, 2021 09:33
Show Gist options
  • Save rec/c81dea6f62da69ed04c49a3241335e40 to your computer and use it in GitHub Desktop.
Save rec/c81dea6f62da69ed04c49a3241335e40 to your computer and use it in GitHub Desktop.
from dataclasses import dataclass
@dataclass
class B:
b: List[object]
@dataclass
class A:
a: B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment