New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with inheritance #49

Closed
samuelcolvin opened this Issue Jun 13, 2017 · 0 comments

Comments

1 participant
@samuelcolvin
Owner

samuelcolvin commented Jun 13, 2017

from pydantic.main import BaseModel

class Foo(BaseModel):
    a: float = ...

class Bar(Foo):
    x: float = 12.3
    a = 123

...
TypeError: issubclass() arg 1 must be a class

@samuelcolvin samuelcolvin added the bug label Jun 13, 2017

samuelcolvin added a commit that referenced this issue Jun 21, 2017

samuelcolvin added a commit that referenced this issue Jun 21, 2017

samuelcolvin added a commit that referenced this issue Jun 21, 2017

samuelcolvin added a commit that referenced this issue Jun 21, 2017

samuelcolvin added a commit that referenced this issue Jun 21, 2017

samuelcolvin added a commit that referenced this issue Jun 21, 2017

samuelcolvin added a commit that referenced this issue Jun 21, 2017

samuelcolvin added a commit that referenced this issue Jun 21, 2017

stricter str validation (#52)
* inheritance bug, fix #49

* stricter str validation, fix #45

* couple for test cases

* adding StrictStr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment