How do I type check my Python 2 code?
You can use a comment-based function annotation syntaxand use the —py2
command-line option to type check your Python 2 code.You’ll also need to install typing
for Python 2 via pip install typing
.
You can use a comment-based function annotation syntaxand use the —py2
command-line option to type check your Python 2 code.You’ll also need to install typing
for Python 2 via pip install typing
.
本文档使用 BookStack 构建