Skip to content

Instantly share code, notes, and snippets.

@rscarrera27
Created August 28, 2020 13:37
Show Gist options
  • Save rscarrera27/b80e9b01a02c7ac0315b824c99773962 to your computer and use it in GitHub Desktop.
Save rscarrera27/b80e9b01a02c7ac0315b824c99773962 to your computer and use it in GitHub Desktop.
from dataclasses import dataclass
@dataclass
class Dto:
foo: str
clas DtoMapper:
def build(foo: str) -> Dto:
return Dto(foo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment