Title: Why do type hints not work? · Issue #802 · ev3dev/ev3dev-lang-python · GitHub
Open Graph Title: Why do type hints not work? · Issue #802 · ev3dev/ev3dev-lang-python
X Title: Why do type hints not work? · Issue #802 · ev3dev/ev3dev-lang-python
Description: For example this code: #!/usr/bin/env python3 s: str = "" raises this error: File "/home/robot/Robotic arm/test.py", line 4 s: str = "" ^ SyntaxError: invalid syntax Is this due to a different python version? If so, how can I update it? ...
Open Graph Description: For example this code: #!/usr/bin/env python3 s: str = "" raises this error: File "/home/robot/Robotic arm/test.py", line 4 s: str = "" ^ SyntaxError: invalid syntax Is this due to a different pyth...
X Description: For example this code: #!/usr/bin/env python3 s: str = "" raises this error: File "/home/robot/Robotic arm/test.py", line 4 s: str = "" ^ SyntaxError: invalid syntax I...
Opengraph URL: https://github.com/ev3dev/ev3dev-lang-python/issues/802
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Why do type hints not work?","articleBody":"For example this code:\n```\n#!/usr/bin/env python3\n\ns: str = \"\"\n```\n\nraises this error:\n```\n File \"/home/robot/Robotic arm/test.py\", line 4\n s: str = \"\"\n ^\nSyntaxError: invalid syntax\n```\n\nIs this due to a different python version? If so, how can I update it?\nI want this because I am using rpyc to connect to another ev3dev brick, and want to type hint the remote motors to get intellisense, inspection... etc. I am running from vscode on windows 11 to a python ev3dev brick connected over a cable. The brick info is:\n - brickman: v0.10.3\n - kernel: 4.14.117-ev3dev-2.3.5-ev3\n - I am on python version 3.5.3 according to sys.version\n\nI have tried running sudo apt-get update and upgrade, but it doesn't change the version\n","author":{"url":"https://github.com/Msavage314","@type":"Person","name":"Msavage314"},"datePublished":"2025-11-22T12:22:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/802/ev3dev-lang-python/issues/802"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3bb0fa8b-d492-80cb-a674-cf3ae4a52c8b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BE6E:DD6B:247F9F8:313A904:69703C9D |
| html-safe-nonce | ae07aca5ca2bb4f0a39b95d1fe38c5ea307cee40952f288ea3d9bc98f2295887 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTZFOkRENkI6MjQ3RjlGODozMTNBOTA0OjY5NzAzQzlEIiwidmlzaXRvcl9pZCI6IjQ4MTcyNjI0MzUwOTExMDI4NzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 776ddf2cea739cda955d616da27a96f1aa38449f01b9dec2e200b6c8f505be49 |
| hovercard-subject-tag | issue:3654630104 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/ev3dev/ev3dev-lang-python/802/issue_layout |
| twitter:image | https://opengraph.githubassets.com/078d7e0e4b4b8cc197dad497dc4d30cdfc5d7da277646ccd20b3f925add2b911/ev3dev/ev3dev-lang-python/issues/802 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/078d7e0e4b4b8cc197dad497dc4d30cdfc5d7da277646ccd20b3f925add2b911/ev3dev/ev3dev-lang-python/issues/802 |
| og:image:alt | For example this code: #!/usr/bin/env python3 s: str = "" raises this error: File "/home/robot/Robotic arm/test.py", line 4 s: str = "" ^ SyntaxError: invalid syntax Is this due to a different pyth... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Msavage314 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| turbo-cache-control | no-preview |
| go-import | github.com/ev3dev/ev3dev-lang-python git https://github.com/ev3dev/ev3dev-lang-python.git |
| octolytics-dimension-user_id | 6878323 |
| octolytics-dimension-user_login | ev3dev |
| octolytics-dimension-repository_id | 43603757 |
| octolytics-dimension-repository_nwo | ev3dev/ev3dev-lang-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 43603757 |
| octolytics-dimension-repository_network_root_nwo | ev3dev/ev3dev-lang-python |
| 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 | f643964067a552f02067066d6a910b2f90a5721f |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width