Whole-known-network
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@dabeaz" class="u-url mention">@<span>dabeaz</span></a></span> Since we're talking types I was assuming a type checker would be involved somehow. They will complain if you call `foo` on an `object`, but not on an `Any`.</p>
<p><span class="h-card" translate="no"><a href="https://scholar.social/@cthoyt" class="u-url mention">@<span>cthoyt</span></a></span> No joke, I will absolutely do that if they're not going to put Any in the builtins.</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@dabeaz" class="u-url mention">@<span>dabeaz</span></a></span> JavaScript PTSD maybe?</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@tintvrtkovic" class="u-url mention">@<span>tintvrtkovic</span></a></span> I don't follow. I can call a method on anything I want. It's Python.</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@dabeaz" class="u-url mention">@<span>dabeaz</span></a></span> just the Typing Man trying to keep you down.</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@dabeaz" class="u-url mention">@<span>dabeaz</span></a></span> You can't call arbitrary methods on `object` ("object has no attribute foo"), you can on `Any`.</p>
<p><span class="h-card" translate="no"><a href="https://dosgame.club/@thp" class="u-url mention">@<span>thp</span></a></span> Oh. Gag me with a spoon.... ugh.</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@dabeaz" class="u-url mention">@<span>dabeaz</span></a></span> Docs (<a href="https://docs.python.org/3/library/typing.html#the-any-type" target="_blank" rel="nofollow noopener noreferrer" translate="no"><span class="invisible">https://</span><span class="ellipsis">docs.python.org/3/library/typi</span><span class="invisible">ng.html#the-any-type</span></a>) say:</p><p>> Use object to indicate that a value could be any type in a typesafe manner. Use Any to indicate that a value is dynamically typed.</p>
<p>Is there any particular reason why I can't just use `object` to mean `typing.Any` in Python?</p>