
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
Mypy finds errors in the first example from the documentation Β· Issue #1072 Β· pydantic/pydantic
Description:
This example from datetime import datetime from typing import List from pydantic import BaseModel class User(BaseModel): id: int name = 'John Doe' signup_ts: datetime = None friends: List[i...
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {π}
- Technology & Computing
- Books & Literature
- Education
Content Management System {π}
What CMS is github.com built with?
Github.com utilizes 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 {π}
mypy, pydantic, type, python, library, samuelcolvin, commented, andreymal, dmontagu, standard, valid, documentation, error, means, libraries, code, react, hinted, requests, errors, issue, dont, bug, doesnt, absolutely, problem, compatible, euri, edited, edits, contributor, add, member, static, analysis, sign, pydanticexamplepy, optional, create, projects, amount, django, arent, finds, strict, false, implicit, reexport, ignore, nonoptional,
Topics {βοΈ}
samuelcolvin edits member andreymal edits author dmontagu edits contributor incorrect type hint complete mypy coverage change mypy errors static analysis tools bump flake8-quotes argue good practice comment metadata assignees supporting --strict mode fairly large amount static analysis libraries pydantic python code fully type hinted attribute 'basemodel' pydantic_example mypy type system potential bug syntax errors python standard library mypy-violating patterns docs dedicated pydantic v1 andreymal changed type hints python developer python written python developers python subset subclass 'basemodel' fine absolutely strive docs type hinted standard library massive amount enormous amount mind django module 'pydantic' pass mypy mypy assume mypy tests passed mypy mypy extension mypy config incompatible types false positive suggests putting awkward inconsistency function arguments
Payment Methods {π}
- Braintree
Questions {β}
- @samuelcolvin any ideas?
- Already have an account?
- Shouldn't it be "is compatible"?
- Why create the issue?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:Mypy finds errors in the first example from the documentation
articleBody:<details>
<summary>This example</summary>
```python
from datetime import datetime
from typing import List
from pydantic import BaseModel
class User(BaseModel):
id: int
name = 'John Doe'
signup_ts: datetime = None
friends: List[int] = []
external_data = {
'id': '123',
'signup_ts': '2019-06-01 12:22',
'friends': [1, 2, '3']
}
user = User(**external_data)
print(user.id)
print(repr(user.signup_ts))
print(user.friends)
print(user.dict())
```
</details>
```
$ mypy --strict pydantic_example.py
pydantic_example.py:3: error: Module 'pydantic' has no attribute 'BaseModel'
pydantic_example.py:5: error: Class cannot subclass 'BaseModel' (has type 'Any')
pydantic_example.py:8: error: Incompatible types in assignment (expression has type "None", variable has type "datetime")
```
This is not false positive. Pydantic `__init__.py` uses implicit reexport (this is an error, and I don't want to ignore it using `--no-implicit-reexport`), and this example uses None for a non-optional field (this is also an error).
In general, I can't trust a library that suggests putting None in a non-optional field in the very first example. This violates the mypy type system.
author:
url:https://github.com/andreymal
type:Person
name:andreymal
datePublished:2019-12-03T22:26:55.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:17
url:https://github.com/1072/pydantic/issues/1072
context:https://schema.org
headline:Mypy finds errors in the first example from the documentation
articleBody:<details>
<summary>This example</summary>
```python
from datetime import datetime
from typing import List
from pydantic import BaseModel
class User(BaseModel):
id: int
name = 'John Doe'
signup_ts: datetime = None
friends: List[int] = []
external_data = {
'id': '123',
'signup_ts': '2019-06-01 12:22',
'friends': [1, 2, '3']
}
user = User(**external_data)
print(user.id)
print(repr(user.signup_ts))
print(user.friends)
print(user.dict())
```
</details>
```
$ mypy --strict pydantic_example.py
pydantic_example.py:3: error: Module 'pydantic' has no attribute 'BaseModel'
pydantic_example.py:5: error: Class cannot subclass 'BaseModel' (has type 'Any')
pydantic_example.py:8: error: Incompatible types in assignment (expression has type "None", variable has type "datetime")
```
This is not false positive. Pydantic `__init__.py` uses implicit reexport (this is an error, and I don't want to ignore it using `--no-implicit-reexport`), and this example uses None for a non-optional field (this is also an error).
In general, I can't trust a library that suggests putting None in a non-optional field in the very first example. This violates the mypy type system.
author:
url:https://github.com/andreymal
type:Person
name:andreymal
datePublished:2019-12-03T22:26:55.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:17
url:https://github.com/1072/pydantic/issues/1072
Person:
url:https://github.com/andreymal
name:andreymal
url:https://github.com/andreymal
name:andreymal
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:17
interactionType:https://schema.org/CommentAction
userInteractionCount:17
External Links {π}(4)
- How much does https://github.blog make?
- See how much https://camo.githubusercontent.com/9483f7aa66eb71a65c28a2430cd97739df5417e76630b5b1eb96caf299a134d4/68747470733a2f2f692e696d67666c69702e636f6d2f3369646839712e6a7067 makes per month
- How much does https://camo.githubusercontent.com/ebec3f5e7ae6efaa105448fa74d21e7e5793f154382cf88d0a31d62045fb8e64/68747470733a2f2f692e696d67666c69702e636f6d2f3369646d61702e6a7067 pull in?
- Check the income stats for https://www.githubstatus.com/
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