|
AnnotationTools
Annotation ToolsIntroductionThe anntools package provides various tools to take advantage of Python 3.0's new function annotation feature. See also: PEP #3107 - Function annotations ExamplesYou can find examples for various features at the following pages: You can also find examples in the unit tests, but they are somewhat obscure due to compatibility reasons for all supported Python version. TutorialsYou can find quick tutorials for various features at the following pages:
DocumentationComplete, generated API documentation FeaturesAnnotators for function arguments and return values
CooperationSchemes enabling the use of multiple tools at the same time on the same subject
Support for Python <3.0 by passing annotations as keyword arguments of decorators instead of using the new 3.0 syntax. RequirementsPython 2.4 or newer, Python 2.6b1 and 3.0b1 are supported InstallationUnit testingYou need the source distribution, since it contains the unit tests in the tests subdirectory. Run test.bat or test.sh depending on your platform. You can remove the calls for the Python versions not installed to your machine. You can run the unit test scripts from the tests subdirectory manually. Some Python IDEs support adding unit tests using wildcards, which could be useful for developers. |