Skip to content

Commit

Permalink
docs: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
geospackle committed Feb 8, 2024
1 parent 800889e commit c18adb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/concepts/plugins.md
Expand Up @@ -121,7 +121,7 @@ On each validation call, the `plugin_settings` will be passed to a callable regi
You can use environment variable `PYDANTIC_DISABLE_PLUGINS` to disable all or specific plugin(s).


| Environment Variable | Allowed Values | Description | |
| Environment Variable | Allowed Values | Description |
|-------------------------------|-------------------------------------------------------|-------------------------------|
| `PYDANTIC_DISABLE_PLUGINS` | `__all__`, `1` | Disables all plugins |
| | Comma-separated string (e.g. `my-plugin-1,my-plugin2` | Disables specified plugin(s) |
2 changes: 1 addition & 1 deletion pydantic/plugin/_loader.py
Expand Up @@ -28,7 +28,7 @@ def get_plugins() -> Iterable[PydanticPluginProtocol]:
if _loading_plugins:
# this happens when plugins themselves use pydantic, we return no plugins
return ()
if disabled_plugins == '__all__' or disabled_plugins == '1':
elif disabled_plugins == '__all__' or disabled_plugins == '1':
return ()
elif _plugins is None:
_plugins = {}
Expand Down

0 comments on commit c18adb5

Please sign in to comment.