aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/content
diff options
context:
space:
mode:
authorGravatar Amrou <[email protected]>2023-02-25 19:53:33 +0100
committerGravatar Amrou <[email protected]>2023-02-25 19:53:33 +0100
commite1100b443844d4e9935e661e63ba352d867fd647 (patch)
tree73209c550f135d2234e229773c6d4da6cd559e17 /pydis_site/apps/content
parentadd 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.md6
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()