Skip to content

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

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

mrkickling
Copy link
Contributor

@mrkickling mrkickling commented May 30, 2025

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.

@mrkickling mrkickling marked this pull request as draft May 30, 2025 10:58

right_asset = self.assets[association['rightAsset']]
if not right_asset:
Copy link
Contributor Author

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.

@mrkickling mrkickling force-pushed the langgraph-walkthrough branch from fcb2236 to 68c61b2 Compare June 3, 2025 13:05
@@ -49,6 +49,7 @@ def to_dict(self) -> dict:


class Context(dict):
"""TODO: What is a context?"""
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need you here @andrewbwm

@mrkickling mrkickling force-pushed the langgraph-walkthrough branch from ba4761c to 0e385f2 Compare July 3, 2025 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant