speedup __instancecheck__ check on BaseModel when they fail (#4081)

* speedup __instancecheck__ check on BaseModel when they fail

* add change description

* linting
This commit is contained in:
Samuel Colvin
2022-05-17 14:13:36 +01:00
committed by GitHub
parent a7e896c5a3
commit abea8232ee
3 changed files with 23 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
Speedup `__isinstancecheck__` on pydantic models when the type is not a model, may also avoid memory "leaks".