| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:e6ae17ef-e367-3f37-6fa0-7c18c61e62de |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D7D4:1CCBDE:24AB78C:3208286:6A53A20C |
| html-safe-nonce | 991668fcee6f8a02ec842ce7ac9f08f888ad0860e2830b5c8c04f15db6c5e798 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0Q0OjFDQ0JERToyNEFCNzhDOjMyMDgyODY6NkE1M0EyMEMiLCJ2aXNpdG9yX2lkIjoiNzY5MjkyOTk4MjUyNDUzMTIxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3462e22a2b9ee8017cb2f6d76bc1d725a25421b9379a8baa125cf8397e47e796 |
| hovercard-subject-tag | pull_request:220839455 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/9731/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/d346cc939300e39022248bc854207f740ab4c760c3e46e585564e352bbc50635/python/cpython/pull/9731 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d346cc939300e39022248bc854207f740ab4c760c3e46e585564e352bbc50635/python/cpython/pull/9731 |
| og:image:alt | It was overridden by the lineno of the first decorator. Now it is
the lineno of 'def' or 'class'.
https://bugs.python.org/issue34876 |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | serhiy-storchaka |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-cache |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/9731#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F9731 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F9731 |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/9731 |
| Reload | https://github.com/python/cpython/pull/9731 |
| Reload | https://github.com/python/cpython/pull/9731 |
| Please reload this page | https://github.com/python/cpython/pull/9731 |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/9731 |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
35k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
73.8k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Code
| https://github.com/python/cpython |
|
Issues
5k+
| https://github.com/python/cpython/issues |
|
Pull requests
2.3k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security and quality
0
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
|
Code
| https://github.com/python/cpython |
|
Issues
| https://github.com/python/cpython/issues |
|
Pull requests
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security and quality
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| python:master | https://github.com/python/cpython/tree/master |
| serhiy-storchaka:ast-decorated-lineno | https://github.com/serhiy-storchaka/cpython/tree/ast-decorated-lineno |
| Conversation | https://github.com/python/cpython/pull/9731 |
| Commits5 (5) | https://github.com/python/cpython/pull/9731/commits |
| Checks | https://github.com/python/cpython/pull/9731/checks |
| Files changed | https://github.com/python/cpython/pull/9731/files |
| bpo-34876: Change the lineno of the AST for decorated function and class. | https://github.com/python/cpython/pull/9731#top |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| python:master | https://github.com/python/cpython/tree/master |
| serhiy-storchaka:ast-decorated-lineno | https://github.com/serhiy-storchaka/cpython/tree/ast-decorated-lineno |
|
| https://github.com/serhiy-storchaka |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| Oct 5, 2018 | https://github.com/python/cpython/pull/9731#issue-367387846 |
| Please reload this page | https://github.com/python/cpython/pull/9731 |
| https://bugs.python.org/issue34876 | https://bugs.python.org/issue34876 |
| Please reload this page | https://github.com/python/cpython/pull/9731 |
|
| https://github.com/serhiy-storchaka |
| bpo-34876: Change the lineno of the AST for decorated function and cl… | https://github.com/python/cpython/pull/9731/commits/faadd30a7ff8932b9225bd504cc9af47efb1e764 |
| faadd30 | https://github.com/python/cpython/pull/9731/commits/faadd30a7ff8932b9225bd504cc9af47efb1e764 |
| https://github.com/serhiy-storchaka |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
|
DO-NOT-MERGE
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3ADO-NOT-MERGE |
| Oct 5, 2018 | https://github.com/python/cpython/pull/9731#event-1888229475 |
| https://github.com/the-knights-who-say-ni |
| the-knights-who-say-ni | https://github.com/the-knights-who-say-ni |
|
CLA signed
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22 |
| Oct 5, 2018 | https://github.com/python/cpython/pull/9731#event-1888229537 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://github.com/bedevere-bot |
|
awaiting merge
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22 |
| Oct 5, 2018 | https://github.com/python/cpython/pull/9731#event-1888229555 |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| October 6, 2018 11:44 | https://github.com/python/cpython/pull/9731#commits-pushed-6741cf5 |
|
| https://github.com/serhiy-storchaka |
| Add tests. | https://github.com/python/cpython/pull/9731/commits/6741cf52aa6945c1561693c80bc38f86a21e2dd9 |
| 6741cf5 | https://github.com/python/cpython/pull/9731/commits/6741cf52aa6945c1561693c80bc38f86a21e2dd9 |
|
| https://github.com/serhiy-storchaka |
| Add a news entry. | https://github.com/python/cpython/pull/9731/commits/244d3a4b41d63e5beac58f89ee7f8ff2d7abef24 |
| 244d3a4 | https://github.com/python/cpython/pull/9731/commits/244d3a4b41d63e5beac58f89ee7f8ff2d7abef24 |
| https://github.com/serhiy-storchaka |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
|
DO-NOT-MERGE
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3ADO-NOT-MERGE |
| Oct 6, 2018 | https://github.com/python/cpython/pull/9731#event-1888549472 |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| October 29, 2018 21:09 | https://github.com/python/cpython/pull/9731#commits-pushed-c6d3a8c |
|
| https://github.com/serhiy-storchaka |
| Merge branch 'master' into ast-decorated-lineno | https://github.com/python/cpython/pull/9731/commits/c6d3a8cda43638ddb9d9233f0a1d6d9ca0e11c5a |
| c6d3a8c | https://github.com/python/cpython/pull/9731/commits/c6d3a8cda43638ddb9d9233f0a1d6d9ca0e11c5a |
|
| https://github.com/serhiy-storchaka |
| Remove debug code. | https://github.com/python/cpython/pull/9731/commits/815535fc5ee4a06bd6bdbe039b69a3434756aad1 |
| 815535f | https://github.com/python/cpython/pull/9731/commits/815535fc5ee4a06bd6bdbe039b69a3434756aad1 |
| https://github.com/serhiy-storchaka |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| 95b6acf | https://github.com/python/cpython/commit/95b6acf951fa7f503a3cc5ce7d969d7bcf2f95c9 |
| Oct 30, 2018 | https://github.com/python/cpython/pull/9731#event-1934738460 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://github.com/bedevere-bot |
|
awaiting merge
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22 |
| Oct 30, 2018 | https://github.com/python/cpython/pull/9731#event-1934738546 |
| https://github.com/serhiy-storchaka |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| October 30, 2018 11:16 | https://github.com/python/cpython/pull/9731#event-1934738644 |
|
Expose more information about function line numbers
python/typed_ast#50
| https://github.com/python/typed_ast/issues/50 |
|
bpo-33211: Change line number of decorated nodes back to def
#6460
| https://github.com/python/cpython/pull/6460 |
| https://github.com/emmatyping |
| emmatyping | https://github.com/emmatyping |
|
Jan 23, 2019
| https://github.com/python/cpython/pull/9731#ref-pullrequest-318680722 |
|
[DO NOT MERGE] Fix def line numbers for decorated nodes
python/typed_ast#61
| https://github.com/python/typed_ast/pull/61 |
| https://github.com/asottile |
| asottile | https://github.com/asottile |
|
Mar 15, 2019
| https://github.com/python/cpython/pull/9731#ref-pullrequest-421317606 |
|
Fix line offsets with ScopeMismatch errors
pytest-dev/pytest#4929
| https://github.com/pytest-dev/pytest/pull/4929 |
| https://github.com/digitalresistor |
| digitalresistor | https://github.com/digitalresistor |
|
Apr 1, 2019
| https://github.com/python/cpython/pull/9731#ref-issue-423175944 |
|
Fix Python 3.8 test failure
Pylons/pyramid#3471
| https://github.com/Pylons/pyramid/issues/3471 |
| https://github.com/mschwager |
| mschwager | https://github.com/mschwager |
|
Sep 10, 2019
| https://github.com/python/cpython/pull/9731#ref-issue-470346905 |
|
Add Python 3.8 support
duo-labs/dlint#12
| https://github.com/duo-labs/dlint/issues/12 |
| https://github.com/jsfalk |
| jsfalk | https://github.com/jsfalk |
|
Feb 20, 2020
| https://github.com/python/cpython/pull/9731#ref-pullrequest-568389296 |
|
fix #706 handling of lineno with decorators
rstudio/reticulate#721
| https://github.com/rstudio/reticulate/pull/721 |
| openstack-gerrit | https://github.com/openstack-gerrit |
|
Feb 28, 2020
| https://github.com/python/cpython/pull/9731#ref-commit-44c081e |
|
| https://github.com/andreykurilin |
| Ensure python 3.8 is supported | https://github.com/openstack/rally/commit/44c081e234443bb12f7ccc2e10095a22dd2330fb |
| 44c081e | https://github.com/openstack/rally/commit/44c081e234443bb12f7ccc2e10095a22dd2330fb |
| https://bugs.python.org/issue35894 | https://bugs.python.org/issue35894 |
| python/cpython#9731 | https://github.com/python/cpython/pull/9731 |
| openstack-gerrit | https://github.com/openstack-gerrit |
|
Feb 28, 2020
| https://github.com/python/cpython/pull/9731#ref-commit-1e79b64 |
|
| https://github.com/openstack-gerrit |
| Update git submodules | https://github.com/openstack/openstack/commit/1e79b64af73ae6a2151cf3ec89a44b0f32a8190e |
| 1e79b64 | https://github.com/openstack/openstack/commit/1e79b64af73ae6a2151cf3ec89a44b0f32a8190e |
| https://bugs.python.org/issue35894 | https://bugs.python.org/issue35894 |
| python/cpython#9731 | https://github.com/python/cpython/pull/9731 |
| https://github.com/kasium |
| kasium | https://github.com/kasium |
|
Nov 12, 2021
| https://github.com/python/cpython/pull/9731#ref-issue-484874558 |
|
bad-docstring-quotes false positive when using decorators
pylint-dev/pylint#3077
| https://github.com/pylint-dev/pylint/issues/3077 |
| https://github.com/Pierre-Sassoulas |
| Pierre-Sassoulas | https://github.com/Pierre-Sassoulas |
|
Dec 5, 2021
| https://github.com/python/cpython/pull/9731#ref-pullrequest-1064500781 |
|
Add doc_node attribute
pylint-dev/astroid#1276
| https://github.com/pylint-dev/astroid/pull/1276 |
| https://github.com/serhiy-storchaka |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
|
Oct 9, 2025
| https://github.com/python/cpython/pull/9731#ref-issue-3498710308 |
|
Misbehavior of f.__code__.co_firstlineno for decorated functions
#139838
| https://github.com/python/cpython/issues/139838 |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F9731 |
| Please reload this page | https://github.com/python/cpython/pull/9731 |
|
| https://github.com/serhiy-storchaka |
|
| https://github.com/the-knights-who-say-ni |
|
| https://github.com/bedevere-bot |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |