You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
andyk
changed the title
Add type annotations and type checking to AgentOS code
Add type checking to AgentOS code (auto-run script as part of PR tests/CI)
Mar 1, 2022
Python 3 supports annotating code with type information (see PEP-3107 added in Python 3.0 and PEP-484 added in Python 3.5).
I propose we start using annotations in our code and running a third party type checking library (in the same workflow that we run lint).
Options if we want to do type checking that uses the annotations:
This article summarizes each of these 4 options, but doesn't weigh-in on which to use.
Also note that Pycharm has built-in typechecking.
The text was updated successfully, but these errors were encountered: