Update CONTRIBUTING.md (#1886)

This commit is contained in:
Sanders Lin 2020-04-18 02:03:36 +08:00 committed by GitHub
parent 8c01da20d6
commit 0feed0bfb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,7 +138,7 @@ We want your work to be readable by others; therefore, we encourage you to note
The use of [Python type hints](https://docs.python.org/3/library/typing.html) is encouraged for function parameters and return values. Our automated testing will run [mypy](http://mypy-lang.org) so run that locally before making your submission. The use of [Python type hints](https://docs.python.org/3/library/typing.html) is encouraged for function parameters and return values. Our automated testing will run [mypy](http://mypy-lang.org) so run that locally before making your submission.
```python ```python
def sum_ab(a: int, b: int) --> int: def sum_ab(a: int, b: int) -> int:
return a + b return a + b
``` ```