Skip to content

Type annotation for dict[str, str] #2613

Answered by Kodiologist
scolobb asked this question in Q&A
Discussion options

You must be logged in to vote

If you write dict[str, str] with parentheses as dict[(str, str)], it's a little clearer that this is just a tuple subscript of dict, which in Hy is (get dict #(str str)). See also Hyrule's of.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Kodiologist
Comment options

@scolobb
Comment options

Answer selected by scolobb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants