Skip to content

Instantly share code, notes, and snippets.

@erickpeirson
Created April 26, 2019 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erickpeirson/6e20a49d0917e863719ddf6fb80f429c to your computer and use it in GitHub Desktop.
Save erickpeirson/6e20a49d0917e863719ddf6fb80f429c to your computer and use it in GitHub Desktop.
data: JSONSchema['path/to/schema.json'] = json.loads(raw_data)
data['apropertyintheschema'] # OK
data['notintheschema'] # error: TypedDict "FooSchema" has no key 'notintheschema'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment