About 50 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. Qt 5 build error: extra characters after test expression

    I am trying to learn Qt 5.3, and this is my first program (hello world). When I try to build, it displays this error: extra characters after test expression. I cannot understand at all why this ...

  4. How to connect a signal with extra arguments in Godot 4

    Oct 25, 2023 · How to upgrade connect from Godot 3 to Godot 4 Let us start with the simple case. If in Godot 3 you connect like this: Godot 3 object.connect("signal_name", self, "method_name") You can …

  5. How does logging's 'extra' argument work? - Stack Overflow

    Nov 1, 2019 · I am struggling to figure out exactly how the extra argument for logging works. I have some legacy code I need to change which uses it, and the code also requires logging to stdout. …

  6. Why are there extra untagged 'images' in Amazon ECR after doing …

    Sep 30, 2023 · I've pushed some Docker images to Amazon Elastic Container Registry (ECR), and I'm not sure why there are extra untagged images. This happens for multiple of my images but one of my …

  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. Find duplicates in an array, without using any extra space

    Given an array of n integer elements how will you find whether there are duplicates in the array in O(n) time without using any extra space. With extra space it means extra space of order O(n). D...

  10. 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 …