mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
Fix typo # pylance: ignore > # pyright: ignore (#4072)
In #3972, `# pyright: ignore` was added in multiple places in the docs, and `# pylance: ignore` only once. I believe it's a typo, as AFAIK such a typing ignore comment flag doesn't exist.
This commit is contained in:
@@ -269,7 +269,7 @@ reasons behind this, and why we can't avoid the problem.
|
||||
|
||||
There are two potential workarounds:
|
||||
|
||||
* use an ignore comment (`# pylance: ignore`) when initialising `settings`
|
||||
* use an ignore comment (`# pyright: ignore`) when initialising `settings`
|
||||
* or, use `settings.parse_obj({})` to avoid the warning
|
||||
|
||||
## Adding a default with `Field`
|
||||
|
||||
Reference in New Issue
Block a user