diff options
author | 2023-02-25 19:53:33 +0100 | |
---|---|---|
committer | 2023-02-25 19:53:33 +0100 | |
commit | e1100b443844d4e9935e661e63ba352d867fd647 (patch) | |
tree | 73209c550f135d2234e229773c6d4da6cd559e17 /pydis_site/apps/content | |
parent | add old config comments (diff) |
remove usage of the Field class
Diffstat (limited to 'pydis_site/apps/content')
-rw-r--r-- | pydis_site/apps/content/resources/guides/pydis-guides/contributing/bot.md | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pydis_site/apps/content/resources/guides/pydis-guides/contributing/bot.md b/pydis_site/apps/content/resources/guides/pydis-guides/contributing/bot.md index eb87c183..dbded02a 100644 --- a/pydis_site/apps/content/resources/guides/pydis-guides/contributing/bot.md +++ b/pydis_site/apps/content/resources/guides/pydis-guides/contributing/bot.md @@ -101,8 +101,6 @@ Let's take an example where we suppose we'll only be testing a feature that need ```py -from pydantic import Field - class EnvConfig: # Defines from where & how Pydantic will be looking for env variables ... @@ -111,8 +109,8 @@ class _Channels(EnvConfig): EnvConfig.Config.env_prefix = "channels." - announcements: int = Field(default=123) - changelog: int = Field(default=456) + announcements = 123 + changelog = 456 # Instantiate the class & load the configuration Channels = _Channels() |