Skip to content

Comments

handle object type hint#76

Closed
KeremTurgutlu wants to merge 1 commit intomainfrom
feat/75-object-type-hint
Closed

handle object type hint#76
KeremTurgutlu wants to merge 1 commit intomainfrom
feat/75-object-type-hint

Conversation

@KeremTurgutlu
Copy link
Contributor

@KeremTurgutlu KeremTurgutlu commented Feb 13, 2026

_handle_type crashes with AttributeError: '_ParameterKind' object has no attribute '__name__' when a parameter is annotated with object. Since object is a type and not a subclass of (int, float, str, bool), it falls into the nested schema branch which tries to introspect object.__init__ — causing the crash. Fixed by returning {'type': 'object'} early for the object type.

Fixes #75

@jph00
Copy link
Collaborator

jph00 commented Feb 14, 2026

Fixed it with more general builtin handling. (Sorry only saw this after I pushed my fix!)

@jph00 jph00 closed this Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants