I posted a survey on a Microsoft-internal Python forum to get feedback about the proposed syntax options from other Python developers who are not part of the typing community. I received 19 responses.
As with any survey data, the results should be taken with a grain of salt.
Question 1: Do you use type annotations (sometimes called “type hints”) in Python?
A (0%): No, I never use type annotations in Python
B (32%): I occasionally use type annotations in Python
C (68%): I frequently use type annotations in Python
Question 2: Have you used “generic types”?
A (0%): No, I don't know what that means
B (47%): I have used generics in other programming languages but not Python
C (53%): I have used generics (TypeVars) in Python
Question 3: To define a generic class in Python, which of the following syntax options would you prefer?
A (5%): using (K, V) class CustomDict(dict[K, V]): ...
B (42%): class CustomDict