proxystore.mypy_plugin¶
ProxyStore mypy plugin.
The Proxy class behaves poorly with
mypy out of the box. Consider the following example.
Mypy can determine that proxy is of type Proxy[Foo] but is unable to
determine the correct types when accessing an attribute of Foo indirectly
via the Proxy instance.
ProxyStore (v0.6.5 and later) comes with an optional mypy plugin which can fix these type resolution limitations. With the mypy plugin enabled, we get the correct type.
Enable the plugin by adding proxystore.mypy_plugin to the list of plugins
in your
mypy config file.
pyproject.tomlmypy.iniandsetup.cfg