Downstream projects, including Tahoe-LAFS, are adopting mypy for static type checking and currently must suppress failing typechecks that on foolscap types like IRemoteReference. If foolscap were to provide these stubs or type hints and declare itself as a typed library, that would enhance the ability of consumers to provide type checks on foolscap-derived objects.
Downstream projects, including Tahoe-LAFS, are adopting mypy for static type checking and currently must suppress failing typechecks that on foolscap types like
IRemoteReference
. If foolscap were to provide these stubs or type hints and declare itself as a typed library, that would enhance the ability of consumers to provide type checks on foolscap-derived objects.