fix: error type hints in Python3.12 (#1147)#1840
Conversation
samsja
left a comment
There was a problem hiding this comment.
Thank you very much for the PR.
I am not sure about the implementation. I think it would be nicer if do a if else on the python version rather that relying on catching the exception
|
Hey @954-Ivory , we need you to sign off the commits and to comply with our guidelines as per lur CONTRIBUTING_GUIDELINES |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1840 +/- ##
==========================================
- Coverage 85.07% 85.06% -0.02%
==========================================
Files 136 136
Lines 9255 9260 +5
==========================================
+ Hits 7874 7877 +3
- Misses 1381 1383 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
I approved, but before merging can you apply black @954-Ivory ? and DCO as well ( you can do |
Can you help me check if I have made any mistakes? |
2d08f10 to
9391424
Compare
Signed-off-by: 954 <[email protected]>
Issue: #1839
Description
I encountered the following issue when using langchain in Python 3.12:
langchain-ai/langchain#15016
It caused by this PR (#1147)
Example Code