File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ def _dispatch(self, cl):
49
49
return self ._function_dispatch .dispatch (cl )
50
50
51
51
def register_cls_list (self , cls_and_handler , direct : bool = False ):
52
- """register a class to direct or singledispatch"""
52
+ """Register a class to direct or singledispatch. """
53
53
for cls , handler in cls_and_handler :
54
54
if direct :
55
55
self ._direct_dispatch [cls ] = handler
Original file line number Diff line number Diff line change @@ -379,13 +379,12 @@ def make_dict_structure_fn(
379
379
else :
380
380
handler = converter .structure
381
381
382
- struct_handler_name = f"__c_structure_{ an } "
383
- internal_arg_parts [struct_handler_name ] = handler
384
-
385
382
kn = an if override .rename is None else override .rename
386
383
allowed_fields .add (kn )
387
384
388
385
if handler :
386
+ struct_handler_name = f"__c_structure_{ an } "
387
+ internal_arg_parts [struct_handler_name ] = handler
389
388
if handler == converter ._structure_call :
390
389
internal_arg_parts [struct_handler_name ] = t
391
390
invocation_lines .append (
You can’t perform that action at this time.
0 commit comments