
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
1.9.1 Breaking change with model deep copying Β· Issue #4092 Β· pydantic/pydantic
Description:
Checks I added a descriptive title to this issue I have searched (google, github) for similar issues and couldn't find anything I have read and followed the docs and still think this is a bug B...
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {π}
- Technology & Computing
- Video & Online Content
- News & Politics
Content Management System {π}
What CMS is github.com built with?
Github.com operates using WORDPRESS.
Traffic Estimate {π}
What is the average monthly size of github.com audience?
ππ Tremendous Traffic: 10M - 20M visitors per month
Based on our best estimate, this website will receive around 10,000,019 visitors per month in the current month.
However, some sources were not loaded, we suggest to reload the page to get complete results.
check SE Ranking
check Ahrefs
check Similarweb
check Ubersuggest
check Semrush
How Does Github.com Make Money? {πΈ}
Subscription Packages {π³}
We've located a dedicated page on github.com that might include details about subscription plans or recurring payments. We identified it based on the word pricing in one of its internal links. Below, you'll find additional estimates for its monthly recurring revenues.How Much Does Github.com Make? {π°}
Subscription Packages {π³}
Prices on github.com are in US Dollars ($).
They range from $4.00/month to $21.00/month.
We estimate that the site has approximately 4,989,889 paying customers.
The estimated monthly recurring revenue (MRR) is $20,957,532.
The estimated annual recurring revenues (ARR) are $251,490,385.
Wordpress Themes and Plugins {π¨}
What WordPress theme does this site use?
It is strange but we were not able to detect any theme on the page.
What WordPress plugins does this website use?
It is strange but we were not able to detect any plugins on the page.
Keywords {π}
internalerror, line, file, commented, timkpaine, pydantic, change, issue, breaking, bug, samuelcolvin, notpeoplingday, contributor, sign, pydanticmainpy, deepcopy, code, pull, requests, added, github, error, pydanticfieldspy, usersworxpyenvversionslibpythoncopypy, memo, version, behavior, navigation, issues, actions, security, model, deep, copying, closed, docs, usersworxapesrcapeapinetworkspy, python, import, default, clang, related, member, experiencing, references, previously, repro, functionality, orenwang, mentioned,
Topics {βοΈ}
/users/worx/ape/src/ape/api/networks /prettywood/pydantic/blob/ae408326e70d84510a8e25e8f6a6ae8871df2fd0/tests/test_main /users/worx/ape/src/ape_test/providers /pydantic/pydantic/releases/tag/v1 /samuelcolvin/pydantic/pull/3642/files 2/envs/ape/lib/python3 comment metadata assignees network named '--deepcopy--' /users/worx/ samuelcolvin mentioned pydantic v1 similar issues pydantic version code base code work import pydantic previously default behavior docs 2/lib/python3 added pydantic/main pydantic/fields pydantic/class_validators descriptive title test suite pyenv/versions/3 current fix minor release info driven changing back seg faults projects milestone milestone relationships personal information 1 1 breaking change breaking change fine repro closed type projects issue error shown pydantic python = copier get_network networknotfounderror __init__ [deepcopy ] = deepcopy default
Payment Methods {π}
- Braintree
Questions {β}
- Already have an account?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:1.9.1 Breaking change with model deep copying
articleBody:### Checks
* [X] I added a descriptive title to this issue
* [X] I have searched (google, github) for similar issues and couldn't find anything
* [X] I have read and followed [the docs](https://pydantic-docs.helpmanual.io/) and still think this is a bug
<!-- Sorry to sound so draconian, but every second saved replying to issues is time spend improving pydantic :-) -->
# Bug
https://github.com/samuelcolvin/pydantic/pull/3642/files
The above PR changes the way models are copied and has created a breaking change in our code base. When running our test suite we now get the following error:
```log
INTERNALERROR> File "/Users/worx/ape/src/ape_test/providers.py", line 19, in __init__
INTERNALERROR> super().__init__(**data)
INTERNALERROR> File "pydantic/main.py", line 339, in pydantic.main.BaseModel.__init__
INTERNALERROR> File "pydantic/main.py", line 1038, in pydantic.main.validate_model
INTERNALERROR> File "pydantic/fields.py", line 857, in pydantic.fields.ModelField.validate
INTERNALERROR> File "pydantic/fields.py", line 1074, in pydantic.fields.ModelField._validate_singleton
INTERNALERROR> File "pydantic/fields.py", line 1121, in pydantic.fields.ModelField._apply_validators
INTERNALERROR> File "pydantic/class_validators.py", line 313, in pydantic.class_validators._generic_validator_basic.lambda12
INTERNALERROR> File "pydantic/main.py", line 679, in pydantic.main.BaseModel.validate
INTERNALERROR> File "pydantic/main.py", line 605, in pydantic.main.BaseModel._copy_and_set_values
INTERNALERROR> File "/Users/worx/.pyenv/versions/3.9.2/lib/python3.9/copy.py", line 146, in deepcopy
INTERNALERROR> y = copier(x, memo)
INTERNALERROR> File "/Users/worx/.pyenv/versions/3.9.2/lib/python3.9/copy.py", line 230, in _deepcopy_dict
INTERNALERROR> y[deepcopy(key, memo)] = deepcopy(value, memo)
INTERNALERROR> File "/Users/worx/.pyenv/versions/3.9.2/lib/python3.9/copy.py", line 151, in deepcopy
INTERNALERROR> copier = getattr(x, "__deepcopy__", None)
INTERNALERROR> File "/Users/worx/ape/src/ape/api/networks.py", line 183, in __getattr__
INTERNALERROR> return self.get_network(network_name)
INTERNALERROR> File "/Users/worx/ape/src/ape/api/networks.py", line 320, in get_network
INTERNALERROR> raise NetworkNotFoundError(network_name)
INTERNALERROR> ape.exceptions.NetworkNotFoundError: No network named '--deepcopy--'.
```
Pinning to 1.9.0 as current fix.
Output of `python -c "import pydantic.utils; print(pydantic.utils.version_info())"`:
```
pydantic version: 1.9.1
pydantic compiled: True
install path: /Users/worx/.pyenv/versions/3.9.2/envs/ape/lib/python3.9/site-packages/pydantic
python version: 3.9.2 (default, Dec 2 2021, 09:57:33) [Clang 13.0.0 (clang-1300.0.29.3)]
platform: macOS-12.3.1-arm64-arm-64bit
optional deps. installed: ['typing-extensions']
```
<!-- or if you're using pydantic prior to v1.3, manually include: OS, python version and pydantic version -->
<!-- Please read the [docs](https://pydantic-docs.helpmanual.io/) and search through issues to
confirm your bug hasn't already been reported. -->
<!-- Where possible please include a self-contained code snippet describing your bug: -->
```py
import pydantic
...
```
author:
url:https://github.com/NotPeopling2day
type:Person
name:NotPeopling2day
datePublished:2022-05-19T16:53:06.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:11
url:https://github.com/4092/pydantic/issues/4092
context:https://schema.org
headline:1.9.1 Breaking change with model deep copying
articleBody:### Checks
* [X] I added a descriptive title to this issue
* [X] I have searched (google, github) for similar issues and couldn't find anything
* [X] I have read and followed [the docs](https://pydantic-docs.helpmanual.io/) and still think this is a bug
<!-- Sorry to sound so draconian, but every second saved replying to issues is time spend improving pydantic :-) -->
# Bug
https://github.com/samuelcolvin/pydantic/pull/3642/files
The above PR changes the way models are copied and has created a breaking change in our code base. When running our test suite we now get the following error:
```log
INTERNALERROR> File "/Users/worx/ape/src/ape_test/providers.py", line 19, in __init__
INTERNALERROR> super().__init__(**data)
INTERNALERROR> File "pydantic/main.py", line 339, in pydantic.main.BaseModel.__init__
INTERNALERROR> File "pydantic/main.py", line 1038, in pydantic.main.validate_model
INTERNALERROR> File "pydantic/fields.py", line 857, in pydantic.fields.ModelField.validate
INTERNALERROR> File "pydantic/fields.py", line 1074, in pydantic.fields.ModelField._validate_singleton
INTERNALERROR> File "pydantic/fields.py", line 1121, in pydantic.fields.ModelField._apply_validators
INTERNALERROR> File "pydantic/class_validators.py", line 313, in pydantic.class_validators._generic_validator_basic.lambda12
INTERNALERROR> File "pydantic/main.py", line 679, in pydantic.main.BaseModel.validate
INTERNALERROR> File "pydantic/main.py", line 605, in pydantic.main.BaseModel._copy_and_set_values
INTERNALERROR> File "/Users/worx/.pyenv/versions/3.9.2/lib/python3.9/copy.py", line 146, in deepcopy
INTERNALERROR> y = copier(x, memo)
INTERNALERROR> File "/Users/worx/.pyenv/versions/3.9.2/lib/python3.9/copy.py", line 230, in _deepcopy_dict
INTERNALERROR> y[deepcopy(key, memo)] = deepcopy(value, memo)
INTERNALERROR> File "/Users/worx/.pyenv/versions/3.9.2/lib/python3.9/copy.py", line 151, in deepcopy
INTERNALERROR> copier = getattr(x, "__deepcopy__", None)
INTERNALERROR> File "/Users/worx/ape/src/ape/api/networks.py", line 183, in __getattr__
INTERNALERROR> return self.get_network(network_name)
INTERNALERROR> File "/Users/worx/ape/src/ape/api/networks.py", line 320, in get_network
INTERNALERROR> raise NetworkNotFoundError(network_name)
INTERNALERROR> ape.exceptions.NetworkNotFoundError: No network named '--deepcopy--'.
```
Pinning to 1.9.0 as current fix.
Output of `python -c "import pydantic.utils; print(pydantic.utils.version_info())"`:
```
pydantic version: 1.9.1
pydantic compiled: True
install path: /Users/worx/.pyenv/versions/3.9.2/envs/ape/lib/python3.9/site-packages/pydantic
python version: 3.9.2 (default, Dec 2 2021, 09:57:33) [Clang 13.0.0 (clang-1300.0.29.3)]
platform: macOS-12.3.1-arm64-arm-64bit
optional deps. installed: ['typing-extensions']
```
<!-- or if you're using pydantic prior to v1.3, manually include: OS, python version and pydantic version -->
<!-- Please read the [docs](https://pydantic-docs.helpmanual.io/) and search through issues to
confirm your bug hasn't already been reported. -->
<!-- Where possible please include a self-contained code snippet describing your bug: -->
```py
import pydantic
...
```
author:
url:https://github.com/NotPeopling2day
type:Person
name:NotPeopling2day
datePublished:2022-05-19T16:53:06.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:11
url:https://github.com/4092/pydantic/issues/4092
Person:
url:https://github.com/NotPeopling2day
name:NotPeopling2day
url:https://github.com/NotPeopling2day
name:NotPeopling2day
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:11
interactionType:https://schema.org/CommentAction
userInteractionCount:11
External Links {π}(3)
Analytics and Tracking {π}
- Site Verification - Google
Libraries {π}
- Clipboard.js
- D3.js
- Lodash
Emails and Hosting {βοΈ}
Mail Servers:
- aspmx.l.google.com
- alt1.aspmx.l.google.com
- alt2.aspmx.l.google.com
- alt3.aspmx.l.google.com
- alt4.aspmx.l.google.com
Name Servers:
- dns1.p08.nsone.net
- dns2.p08.nsone.net
- dns3.p08.nsone.net
- dns4.p08.nsone.net
- ns-1283.awsdns-32.org
- ns-1707.awsdns-21.co.uk
- ns-421.awsdns-52.com
- ns-520.awsdns-01.net