-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Add _type for all parsers #4189
Conversation
Replicating the PR: #3332 |
@hwchase17, can you help take a look at this? Thank you :) |
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.
2 small comments, otherwise looks good!
Signed-off-by: Sunish Sheth <sunishsheth2009@gmail.com>
1c5f1b9
to
a7c6043
Compare
try: | ||
# Most parsers just return a string. MagicMock lets | ||
# the parsers that wrap another parsers slide by | ||
cls._type.fget(MagicMock()) # type: ignore |
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.
not sure i understand, why is this needed?
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.
I agree, its not needed here. There are no parsers that wrap another parser. Removed that code. :)
Thank you
Signed-off-by: Sunish Sheth <sunishsheth2009@gmail.com>
a7c6043
to
8584473
Compare
Used for serialization. Also add test that recurses through our subclasses to check they have them implemented Would fix langchain-ai#3217 Blocking: mlflow/mlflow#8297 --------- Signed-off-by: Sunish Sheth <sunishsheth2009@gmail.com> Co-authored-by: Dev 2049 <dev.dev2049@gmail.com>
Used for serialization. Also add test that recurses through our subclasses to check they have them implemented Would fix langchain-ai#3217 Blocking: mlflow/mlflow#8297 --------- Signed-off-by: Sunish Sheth <sunishsheth2009@gmail.com> Co-authored-by: Dev 2049 <dev.dev2049@gmail.com>
Used for serialization. Also add test that recurses through
our subclasses to check they have them implemented
Would fix #3217
Blocking: mlflow/mlflow#8297