Skip to content

Conversation

@Bibo-Joshi
Copy link
Member

Apparently I only now understood the difference between object and Any as annotiation. TL;DR:

  • var: object tells the typchecker that literally any object must be handled correctly
  • var: Any just won't typecheck usages of var at all

So this drops Any wherever possible in favor of object

@Bibo-Joshi Bibo-Joshi added the ⚙️ type-hinting affected functionality: type-hinting label Jan 15, 2021
@Bibo-Joshi Bibo-Joshi requested a review from Poolitzer January 15, 2021 17:12
@Bibo-Joshi
Copy link
Member Author

I'll just go ahead and merge this. as noam once put it "type hints are basically documentation" …

@Bibo-Joshi Bibo-Joshi merged commit 70aba13 into master Jan 30, 2021
@Bibo-Joshi Bibo-Joshi deleted the drop-any-annotations branch January 30, 2021 10:38
@Bibo-Joshi Bibo-Joshi removed the request for review from Poolitzer January 30, 2021 11:07
@github-actions github-actions bot locked and limited conversation to collaborators Jan 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

⚙️ type-hinting affected functionality: type-hinting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants