About 50 results
Open links in new tab
  1. Pydantic validations for extra fields that not defined in schema

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

  2. python - How to set extra index with credentials for uv like pip ...

    Nov 4, 2025 · Similar to this question, we want to specify an extra package index to be used by uv. However, our package index url contains private information, i.e., user name and token. Up to now, …

  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. Why does a pull request show extra commits after a rebase?

    Jan 31, 2020 · So I started with a pull request that was a few commits ahead of develop, let's call this branch feature. feature had 1 merge conflict with develop. So I decided to rebase it and resolve the …

  5. javascript - What causes NextJS Warning: "Extra attributes from the ...

    Feb 3, 2023 · This is usually caused by an extension passing these extra attributes with your code when it is executed on the browser trying to interact with the UI, this creates a mismatch between what was …

  6. Faster way to remove 'extra' spaces (more than 1) from a large range of ...

    May 2, 2017 · How do I remove extra spaces faster, from a large range of cells containing text strings? Let's say 5000+ cells. Some ways I have tried include: For Each c In range c.Value = Trim(c.Value) N...

  7. Python json.loads shows ValueError: Extra data - Stack Overflow

    Jan 11, 2014 · raise ValueError(errmsg("Extra data", s, end, len(s))) ValueError: Extra data: line 2 column 1 - line 10 column 1 (char 261900 - 6964758) PS. I use the word record, but that's not the …

  8. How do I add an extra column to a NumPy array? - Stack Overflow

    14 Add an extra column to a numpy array: Numpy's np.append method takes three parameters, the first two are 2D numpy arrays and the 3rd is an axis parameter instructing along which axis to append:

  9. Why Ansible-Tower is ignoring extra variables? - Stack Overflow

    May 15, 2019 · Trying to lunch a job workflow via REST API and passing extra variables for the playbook to consume, but returned body shows that provided variables are put in ignored_fields …

  10. AndroidStudio USB: EXTRA_PERMISSION_GRANTED returns false - always

    Aug 7, 2022 · For any unknown reason I got this also ones to work meaning that after selecting OK in the permission dialog the getBooleanExtra ( UsbManager.EXTRA_PERMISSION_GRANTED was …