About 11,600,000 results
Open links in new tab
  1. Pydantic validations for extra fields that not defined in schema

    Apr 12, 2022 · Pydantic v1 You can use the extra field in the Config class to forbid extra attributes during model initialisation (by default, additional attributes will be ignored). For example:

  2. How to set an index URL for 'uv'-like pip configurations

    May 2, 2025 · When using pip to install Python packages, we can set the configurations, so that it can refer to some private repository to install packages. The use case is, for example, for big companies …

  3. python - "extra fields not permitted" when subclassing model with ...

    Mar 2, 2023 · If you are using pydantic 2 with pydantic-settings and BaseSettings instead of BaseModel, then set the config value of extra to allow or ignore. This is the new way of ignoring the extra configs …

  4. XML Error: Extra content at the end of the document

    XML Error: Extra content at the end of the document Asked 12 years, 6 months ago Modified 1 year, 11 months ago Viewed 203k times

  5. How are the `extra` flags in pip METADATA Requires-Dist used?

    Requires-Dist: pyodbc ; extra == 'mssql_pyodbc' You put one or more comma separated extra identifiers, i.e. the oracle or mssql_pyodbc in my example above, in square brackets.

  6. Can pip.conf specify two index-url at the same time?

    Jun 17, 2015 · I have tried using pip with index-url in pip.conf. However, i can not make sure that we can get all the necessary python library. So, i want to know if pip support specify more than one index-url ...

  7. How does one ignore extra arguments passed to a dataclass?

    5 Using the dacite python library to populate a dataclass using a dictionary of values ignores extra arguments / values present in the dictionary (along with all the other benefits the library provides).

  8. Why does my Python code print the extra characters "" when …

    Dec 21, 2015 · Why does my Python code print the extra characters "" when reading from a text file? Asked 9 years, 11 months ago Modified 2 years, 5 months ago Viewed 68k times

  9. Pip priority order with index-url and extra-index-url

    Apr 25, 2021 · If I switch the values for index-url and extra-index-url I get the same result. pypi is always prioritized. Answer: Packages are expected to be unique up to name and version, so two wheels with …

  10. Golang: fmt, variadic args and %! (EXTRA type=value) error

    Oct 28, 2015 · Hello World According to the fmt docs, %!(EXTRA string=WORLD) is added to the string when you pass extra parameters, unexpected by the format. Maybe you are using the format string …