Skip to content

Commit

Permalink
Fix type error from mypy@latest
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbundy committed Sep 5, 2021
1 parent 2b1818b commit 180a9a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydantic/mypy.py
Expand Up @@ -354,7 +354,7 @@ def add_construct_method(self, fields: List['PydanticModelField']) -> None:
tvd = TypeVarType(self_tvar_name, tvar_fullname, -1, [], obj_type)
self_tvar_expr = TypeVarExpr(self_tvar_name, tvar_fullname, [], obj_type)
ctx.cls.info.names[self_tvar_name] = SymbolTableNode(MDEF, self_tvar_expr)
self_type = TypeVarType(tvd)
self_type = tvd
add_method(
ctx,
'construct',
Expand Down

0 comments on commit 180a9a7

Please sign in to comment.