-
Notifications
You must be signed in to change notification settings - Fork 780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A couple missing rust commands #918
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks okay. What's the purpose of changing from typing to collections.abc though?
code/create_spoken_forms.py
Outdated
@@ -1,8 +1,9 @@ | |||
import itertools | |||
import re | |||
from collections import defaultdict | |||
from collections.abc import Mapping |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's up with these changes from typing to collections.abc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good question. I think my branch may have been out of sync and not up to date. I can put it back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our autoformatter started doing that last week. Apparently as of 3.9 they're starting to deprecate the versions from typing
in favour of those from collections.abc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think this is coming from a new pyupgrade release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this change was made in #921, so if you rebase this change should disappear.
lang/rust/rust.talon
Outdated
@@ -48,6 +48,7 @@ toggle use: user.code_toggle_libraries() | |||
## Simple aliases | |||
borrow: "&" | |||
borrow mutable: "&mut " | |||
state (async | asynchronous): "async " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I use "a sink" for this, as I found recognition better. Not sure our stance regarding these kind of games to improve recognition tho. cc/ @knausj85 @lunixbochs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At some point it might be worth adding this under a common tag to make this consistent between languages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fwiw we support this as a keyword in Javascript
4f604ed
to
b7f78bb
Compare
rebased |
* A couple missing rust commands * Added "a sink" to improve accuracy
* A couple missing rust commands * Added "a sink" to improve accuracy
No description provided.