You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-12Lines changed: 1 addition & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ If you prefer to modify your own color scheme, here is a list of new/modified sc
29
29
-`keyword.other.python` now only contains `assert`—`as`, `del`, `exec`, and `print` have been relocated
30
30
-`support.type.exception.python` now matches any identifier that ends with `Exception` or `Error`, not just the built-in ones like `IndentationError` or `RuntimeException`, allowing for the highlighting of custom exceptions such as those included in third-party modules
31
31
- Miscellaneous changes to `support.function.builtin.python` and `support.type.python`— a lot of personal judgement went in to deciding which word went where (for example, `list` is a built-in function, but it's also a type, so I put it in `type`), so if you have a good reason for disagreeing please tell me.
32
-
-function annotation support for python3. New scopes added: `punctuation.separator.annotation.python`, `punctuation.separator.annotation.result.python`, `punctuation.definition.parameters-group.begin.python`., and `punctuation.definition.parameters-group.end.python`.
32
+
-[Function annotation](http://www.python.org/dev/peps/pep-3107/) support for Python 3, thanks to @facelessuser. New scopes added: `punctuation.separator.annotation.python`, `punctuation.separator.annotation.result.python`, `punctuation.definition.parameters-group.begin.python`, and `punctuation.definition.parameters-group.end.python`.
33
33
- You can now have comments in multi-line function definitions:
34
34
35
35
```python
@@ -41,17 +41,6 @@ def myfunc(self, # gotta have self
41
41
42
42
## Issues
43
43
44
-
I'd love to be able to add support for Python 3's [function annotations](http://www.python.org/dev/peps/pep-3107/):
45
-
46
-
```python
47
-
defgreet(name: str, age: int) -> str:
48
-
print('Hello {0}, you are {1} years old'.format(name, age))
49
-
# instead of the standard
50
-
defgreet(name, age):
51
-
print(...)
52
-
```
53
-
This is a bit complex, and I've been having all sorts of trouble trying to match the various parts. If you'd like to help, let me know!
54
-
55
44
If you have questions, concerns, or suggested improvements, I'd love to hear from you! Feel free to [open an issue](https://github.com/MattDMo/PythonImproved/issues/new) or send a [pull request](https://github.com/MattDMo/PythonImproved/compare/) and I'll get back to you as soon as I can. You can also email me at <[email protected]>.
0 commit comments