NobleBlocks
Public

Using ParamSpec with Python Generics

Published • Apr 22, 2025
Authors:
Charles Tapley Hoyt

Abstract

I've been working on applying strict static typing to my Python package class-resolver and ran into an interesting way of using generics in combination with parameter specification variables (i.e., ParamSpecs). Normally, if you want to type annotate a function, you use the Callable, which works like...

Finding related papers...

Discussions

(0)

No comments yet

Be the first to share your thoughts!