Skip to content
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
Closed

Error with inheritance #49

samuelcolvin opened this issue Jun 13, 2017 · 0 comments
Labels

Comments

@samuelcolvin
Copy link
Owner

@samuelcolvin 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 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
* 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
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant