Re: Consider using `any` as `Any`?
30 Nov
2022
30 Nov
'22
11:54 a.m.
I like the idea of `callable` and `Callable`. For `any` vs. `Any`, I don’t have a strong opinion on it directly, but would like to suggest an adjustment for a non-imported version of `Any`. For me, I’ve found `typing.Any` to be more of a foot gun than a benefit because it doesn’t actually mean any object as it sounds like, it semantically is more of disable the type checker (at least as I understand it). As such, my recommendation would be to do a different name such as `unknown` for a built in which corresponds to `typing.Any` to better assist individuals new to type checking and who use `Any` (intended as any object) when they actually mean `object`. Thanks for bringing this up and the discussion. — Kevin Kirsche @kkirsche GitHub
674
Age (days ago)
674
Last active (days ago)
0 comments
1 participants
participants (1)
-
Kevin Kirsche