#98

Refactor get_local_defns.

Opendnwparkwants to merge intofrom

When getting function annotations for normal functions:

  • in get_local_defns
    • Create a duplicate function with the computed annotations
    • Pass that function out in dct
  • in get_annotated_method_hints
    • Get the signature from that function
    • Generate a function type

Since this is the only use of dct, we can do all that work in get_local_defns by generating the signature directly.

Reusing the _resolved_function_signature for all types of functions also makes things easier.

Activity

8
vercel[bot]9mo ago

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
python-typemap ReadyPreview, CommentFeb 17, 2026 5:24pm
vercel[bot]reviewed9mo ago