MongoDB with Async Python Transcripts
Chapter: Foundations: Pydantic
Lecture: Get the Plugins

Login or purchase this course to watch this video and the rest of the course contents.
0:00 When you're working with Pydantic, these classes have a bunch of types and fields that have to be set
0:07 and many of them are required unless you explicitly make them optional.
0:12 And yet, the initializer, the constructor for these classes is just *args, **kwargs, you know, the
0:20 we'll take anything"" and it doesn't really give you much help on what types are required, what are expected, that sort of thing.
0:28 So you want to get the plugins for your editor. If you're using PyCharm, grab the PyCharm plugin.
0:34 If you're using VS Code, there's one as well, an extension there as well.
0:37 If you're using mypy, which is a tool you run against your code to verify its type
0:43 consistency across function calls and classes and that sort of thing, there's a mypy plugin.
0:49 Also for testing, generating test data, there's Hypothesis as well.
0:54 So if you're using any of those, do consider getting the plugin to make working with it a little bit better in your code editor or your CLI tools.


Talk Python's Mastodon Michael Kennedy's Mastodon