-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
asyncio.iscoroutinefunction has no docstring due to misplaced import statement #149694
Copy link
Copy link
Closed
Closed
Copy link
Labels
3.14bugs and security fixesbugs and security fixes3.15pre-release feature fixes, bugs and security fixespre-release feature fixes, bugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dirstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-asynciotype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Metadata
Metadata
Assignees
Labels
3.14bugs and security fixesbugs and security fixes3.15pre-release feature fixes, bugs and security fixespre-release feature fixes, bugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dirstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-asynciotype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Done
Status
Todo
Bug report
Bug description:
In
Lib/asyncio/coroutines.py, theiscoroutinefunction()function has its docstring placed after animport warningsstatement, which makes the__doc__method return NoneMRE:
Expected:
Fix:
Move the import warnings statement below the docstring.
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Linked PRs
asyncio.iscoroutinefunction(GH-149696) #149736