用于Python的系统,通过收集运行时类型来生成静态类型注释-Python开发

时间:2021-05-25 12:05:52
【文件属性】:
文件名称:用于Python的系统,通过收集运行时类型来生成静态类型注释-Python开发
文件大小:105KB
文件格式:ZIP
更新时间:2021-05-25 12:05:52
Python Miscellaneous MonkeyType MonkeyType收集函数参数和返回值的运行时类型,并可以基于r收集的类型自动生成存根文件,甚至直接将草稿类型注释添加到您的Python代码。MonkeyType MonkeyType收集函数参数和返回值的运行时类型,并且可以根据运行时收集的类型自动生成存根文件,甚至将草稿类型注释直接添加到您的Python代码中。 示例假设some / module.py最初包含:def add(a,b):返回a + b myscript.py包含:from some.module import add add(1,2)现在我们要推断add的类型注释通过使用MonkeyType运行myscript.py在some / module.py中。 单程
【文件预览】:
MonkeyType-main
----README.rst(4KB)
----mypy.ini(324B)
----CONTRIBUTING.rst(3KB)
----.flake8(109B)
----monkeytype()
--------exceptions.py(348B)
--------util.py(3KB)
--------compat.py(5KB)
--------config.py(5KB)
--------db()
--------encoding.py(8KB)
--------__init__.py(943B)
--------py.typed(0B)
--------__main__.py(264B)
--------tracing.py(9KB)
--------stubs.py(32KB)
--------cli.py(14KB)
--------typing.pyi(4KB)
--------typing.py(16KB)
----.circleci()
--------config.yml(4KB)
----demo()
--------mypy.ini(58B)
--------inbox.py(5KB)
--------test_inbox.py(8KB)
--------requirements.txt(291B)
--------models.py(3KB)
--------pytest.ini(93B)
--------setup.cfg(28B)
--------README.md(2KB)
----Pipfile.lock(41KB)
----doc()
--------generation.rst(7KB)
--------make.bat(1KB)
--------faq.rst(2KB)
--------conf.py(6KB)
--------configuration.rst(7KB)
--------index.rst(482B)
--------Makefile(607B)
--------stores.rst(6KB)
--------tracing.rst(7KB)
----RELEASING.rst(1KB)
----tox.ini(114B)
----pytest.ini(103B)
----LICENSE(1KB)
----setup.py(2KB)
----CHANGES.rst(6KB)
----Pipfile(346B)
----tests()
--------cythontest.pyx(340B)
--------test_cli.py(13KB)
--------util.py(2KB)
--------test_config.py(1KB)
--------testmodule()
--------test_tracing.py(10KB)
--------db()
--------test_util.py(3KB)
--------test_typing.py(30KB)
--------__init__.py(0B)
--------test_stubs.py(48KB)
--------conftest.py(347B)
--------test_encoding.py(9KB)
----CODE_OF_CONDUCT.md(243B)
----.gitignore(173B)
----pyproject.toml(100B)

网友评论