GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing github.com — fix: error type hints in Python3.12 (#1147) by 954-Ivory · Pull Request #1840 · docarray/docarray
This repository was archived by the owner on Sep 9, 2026. It is now read-only.
Conversation
Contributor
Issue: #1839 DescriptionI encountered the following issue when using langchain in Python 3.12: return Generic.__class_getitem__.__func__(cls, item) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'builtin_function_or_method' object has no attribute '__func__'. Did you mean: '__doc__'? It caused by this PR (#1147) Example Codehttps://learn.deeplearning.ai/langchain/lesson/5/question-and-answer
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
samsja
suggested changes
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 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
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
I approved, but before merging can you apply black @954-Ivory ? and DCO as well ( you can do |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Can you help me check if I have made any mistakes? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
2d08f10 to
9391424
Compare
Signed-off-by: 954 <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.