Title: handle type annotations in nested functions correctly by elmjag · Pull Request #7072 · RustPython/RustPython · GitHub
Open Graph Title: handle type annotations in nested functions correctly by elmjag · Pull Request #7072 · RustPython/RustPython
X Title: handle type annotations in nested functions correctly by elmjag · Pull Request #7072 · RustPython/RustPython
Description: For example in the following code:
def foo(x: int, y: float):
def bar(q: int):
return q
pass
Make sure that foo type annotations are correctly propogated to it's __annotate__ and __annotations__ attributes.
With this chage, we'll get:
>>>>> foo.__annotations__
{'x':
Open Graph Description: For example in the following code: def foo(x: int, y: float): def bar(q: int): return q pass Make sure that foo type annotations are correctly propogated to it's __annotate__ a...
X Description: For example in the following code: def foo(x: int, y: float): def bar(q: int): return q pass Make sure that foo type annotations are correctly propogated to it's __annotate...
Opengraph URL: https://github.com/RustPython/RustPython/pull/7072
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:77b8fff7-82f1-9a2f-5494-d83a8a443711 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D5DA:1A182C:49338EF:6154BB2:6A5D8EF5 |
| html-safe-nonce | 2de32a1fad2d1f560409a620de5a68b459ff183dde6adb294e4d1794c9966d8e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENURBOjFBMTgyQzo0OTMzOEVGOjYxNTRCQjI6NkE1RDhFRjUiLCJ2aXNpdG9yX2lkIjoiMzY0OTgzMjI5NDc1MDcxOTczMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9d3c4d9ea0c8fbbecbd071badc52af244845b21e7b09ba9d0ea5fd7bec4ef2bc |
| hovercard-subject-tag | pull_request:3267342497 |
| 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 | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/7072/files |
| twitter:image | https://avatars.githubusercontent.com/u/77584583?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/77584583?s=400&v=4 |
| og:image:alt | For example in the following code: def foo(x: int, y: float): def bar(q: int): return q pass Make sure that foo type annotations are correctly propogated to it's __annotate__ a... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width