-
Notifications
You must be signed in to change notification settings - Fork 3
Langgraph walkthrough - typehinting, docstringing and simplifications #131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
||
right_asset = self.assets[association['rightAsset']] | ||
if not right_asset: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would never happen before, the program would crash on a keyerror on the line before, so this if statement had to be changed.
fcb2236
to
68c61b2
Compare
maltoolbox/language/languagegraph.py
Outdated
@@ -49,6 +49,7 @@ def to_dict(self) -> dict: | |||
|
|||
|
|||
class Context(dict): | |||
"""TODO: What is a context?""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need you here @andrewbwm
ba4761c
to
0e385f2
Compare
This is me walking through the Language Graph and changing things the linter tells me about and adding typehints.
I also added/altered docstrings and made some simplifications of small parts of the code.
I added a couple of TODO comments I want to fix before this merge, mostly for docstrings and 'type errors'.
Some mypy is failing now because I added typehinting and we need to abide by those, also TODO before merge.