mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 18:06:44 +00:00
docs/contributing/mypy: Small wording fixes.
This commit is contained in:
@@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
[mypy](http://mypy-lang.org/) is a compile-time static type checker
|
[mypy](http://mypy-lang.org/) is a compile-time static type checker
|
||||||
for Python, allowing optional, gradual typing of Python code. Zulip
|
for Python, allowing optional, gradual typing of Python code. Zulip
|
||||||
was fully annotated with mypy's Python 2 syntax (as of late 2016)
|
was fully annotated with mypy's Python 2 syntax in 2016, before our
|
||||||
before our migration to Python 3 (in late 2017).
|
migration to Python 3 in late 2017.
|
||||||
|
|
||||||
As a result, Zulip is in the process of migrating from using mypy's
|
As a result, Zulip is in the process of migrating from using mypy's
|
||||||
Python 2 compatible syntax for type annotations, which means that type
|
Python 2 compatible syntax for type annotations (in which type
|
||||||
annotations are written inside comments that start with `# type: `, to
|
annotations are written inside comments that start with `# type: `) to
|
||||||
the Python 3 syntax. Here's a brief example of the mypy syntax we're
|
the Python 3 syntax. Here's a brief example of the mypy syntax we're
|
||||||
using in Zulip:
|
using in Zulip:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user