Title: gh-106727: Add `__module__` check for `inspect.getsource(cls)` by gaogaotiantian · Pull Request #106968 · python/cpython · GitHub
Open Graph Title: gh-106727: Add `__module__` check for `inspect.getsource(cls)` by gaogaotiantian · Pull Request #106968 · python/cpython
X Title: gh-106727: Add `__module__` check for `inspect.getsource(cls)` by gaogaotiantian · Pull Request #106968 · python/cpython
Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.
Open Graph Description: In method heuristics, make sure the method we check against comes from the same file as the class. Fixed the issue from #106815 Issue: inspect.getsource (findsource) not working as expected when ...
X Description: In method heuristics, make sure the method we check against comes from the same file as the class. Fixed the issue from #106815 Issue: inspect.getsource (findsource) not working as expected when ...
Opengraph URL: https://github.com/python/cpython/pull/106968
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:8739ef59-3aff-1c86-d5b2-c1a795a2f271 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 846A:E563E:BCEACD:F7E8EF:6A51A6B4 |
| html-safe-nonce | 19a0b42e29357f19c8f32fad0981812313a47d75df2b7bae9e7677ea94097130 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDZBOkU1NjNFOkJDRUFDRDpGN0U4RUY6NkE1MUE2QjQiLCJ2aXNpdG9yX2lkIjoiNjU4ODg1NDc1NzU5NjYyNzcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6bde99591d8e8a4ed726cb47caa3fc30116eb224fbe636b32a18b541ff1c5294 |
| hovercard-subject-tag | pull_request:1444956076 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/106968/checks |
| twitter:image | https://opengraph.githubassets.com/3b419fb0105e7944e227c15c46dbe57653f5fceabbd84148e006015d8d91c574/python/cpython/pull/106968 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3b419fb0105e7944e227c15c46dbe57653f5fceabbd84148e006015d8d91c574/python/cpython/pull/106968 |
| og:image:alt | In method heuristics, make sure the method we check against comes from the same file as the class. Fixed the issue from #106815 Issue: inspect.getsource (findsource) not working as expected when ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gaogaotiantian |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width