opt_einsum icon indicating copy to clipboard operation
opt_einsum copied to clipboard

Add py.typed

Open juanjosegarciaripoll opened this issue 11 months ago • 2 comments

Could you consider adding py.typed to the module directory, and installing this file, so that mypy does not complain when importing opt_einsum?

juanjosegarciaripoll avatar Jan 25 '25 07:01 juanjosegarciaripoll

As commented in #246 as well, can you try manually adding a py.typed to an install and see if you have any issues with the typing? I haven't been able to verify the typing doesn't cause additional issues due to the duck typed nature of Arrays in the library.

dgasmith avatar Feb 07 '25 17:02 dgasmith

Without py.typed type-checkers will ignore all of the inline annotation. That seems like a bit of a waste to me.

jorenham avatar Apr 05 '25 22:04 jorenham