@@ -471,7 +471,7 @@ class Nested(Field):
471471
472472 def __init__ (
473473 self ,
474- nested : typing .Union [SchemaABC , typing . Type [ SchemaABC ] , str ],
474+ nested : typing .Union [SchemaABC , type , str ],
475475 * ,
476476 default : typing .Any = missing_ ,
477477 only : types .StrSequenceOrSet = None ,
@@ -664,9 +664,7 @@ class List(Field):
664664
665665 default_error_messages = {"invalid" : "Not a valid list." }
666666
667- def __init__ (
668- self , cls_or_instance : typing .Union [Field , typing .Type [Field ]], ** kwargs
669- ):
667+ def __init__ (self , cls_or_instance : typing .Union [Field , type ], ** kwargs ):
670668 super ().__init__ (** kwargs )
671669 try :
672670 self .inner = resolve_field_instance (cls_or_instance )
@@ -1427,8 +1425,8 @@ class Mapping(Field):
14271425
14281426 def __init__ (
14291427 self ,
1430- keys : typing .Union [Field , typing . Type [ Field ] ] = None ,
1431- values : typing .Union [Field , typing . Type [ Field ] ] = None ,
1428+ keys : typing .Union [Field , type ] = None ,
1429+ values : typing .Union [Field , type ] = None ,
14321430 ** kwargs
14331431 ):
14341432 super ().__init__ (** kwargs )
0 commit comments