Skip to content

Use pydantic for configuration validation and modelling#8

Open
andpe wants to merge 9 commits intomasterfrom
pydantic-configs
Open

Use pydantic for configuration validation and modelling#8
andpe wants to merge 9 commits intomasterfrom
pydantic-configs

Conversation

@andpe
Copy link
Owner

@andpe andpe commented Aug 9, 2021

No description provided.

andpe added 4 commits August 8, 2021 18:19
This comes with some necessary changes to support the change in
configuration handling, such as allowing the user to specify which
class they are using for the Client property in modules.

This means that the Config class can be subclassed to support
custom attributes (assuming a subclass of discord.Client or
eris.Core is used).
Also, narrow what types are allowed for GenericModuleBase.
Mainly disabling a cyclic import warning since it is handled
already (by moving the modulebase import into a function).
@andpe andpe added the enhancement New feature or request label Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant