Title: Missing "final" decorator in typing · Issue #2658 · RustPython/RustPython · GitHub
Open Graph Title: Missing "final" decorator in typing · Issue #2658 · RustPython/RustPython
X Title: Missing "final" decorator in typing · Issue #2658 · RustPython/RustPython
Description: Feature pytest's type checking depends on final from typing https://github.com/pytest-dev/pytest/blob/main/src/_pytest/compat.py#L348 rustpython -m pytest piconumpy -s Finished release [optimized] target(s) in 0.16s Running `/home/ryuta/...
Open Graph Description: Feature pytest's type checking depends on final from typing https://github.com/pytest-dev/pytest/blob/main/src/_pytest/compat.py#L348 rustpython -m pytest piconumpy -s Finished release [optimized] ...
X Description: Feature pytest's type checking depends on final from typing https://github.com/pytest-dev/pytest/blob/main/src/_pytest/compat.py#L348 rustpython -m pytest piconumpy -s Finished release [optimiz...
Opengraph URL: https://github.com/RustPython/RustPython/issues/2658
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Missing \"final\" decorator in typing","articleBody":"## Feature\r\n\r\n`pytest`'s type checking depends on `final` from `typing`\r\n\r\nhttps://github.com/pytest-dev/pytest/blob/main/src/_pytest/compat.py#L348\r\n\r\n```python\r\nrustpython -m pytest piconumpy -s\r\n Finished release [optimized] target(s) in 0.16s\r\n Running `/home/ryuta/packages/rustpython/rustpython/target/release/rustpython -m pytest piconumpy -s`\r\nTraceback (most recent call last):\r\n File \"/home/ryuta/packages/rustpython/rustpython/vm/pylib-crate/Lib/runpy.py\", line 188, in _run_module_as_main\r\n sys.exit(msg)\r\n File \"/home/ryuta/packages/rustpython/rustpython/vm/pylib-crate/Lib/runpy.py\", line 183, in _run_module_as_main\r\n mod_name, mod_spec, code = _get_module_details(mod_name, _Error)\r\n File \"/home/ryuta/packages/rustpython/rustpython/vm/pylib-crate/Lib/runpy.py\", line 147, in _get_module_details\r\n \"be directly executed\") %(e, mod_name))\r\n File \"/home/ryuta/packages/rustpython/rustpython/vm/pylib-crate/Lib/runpy.py\", line 142, in _get_module_details\r\n return _get_module_details(pkg_main_name, error)\r\n File \"/home/ryuta/packages/rustpython/rustpython/vm/pylib-crate/Lib/runpy.py\", line 116, in _get_module_details\r\n raise\r\n File \"/home/ryuta/packages/rustpython/rustpython/vm/pylib-crate/Lib/runpy.py\", line 109, in _get_module_details\r\n __import__(pkg_name)\r\n File \"_frozen_importlib\", line 1094, in __import__\r\n File \"_frozen_importlib\", line 1015, in _gcd_import\r\n File \"_frozen_importlib\", line 992, in _find_and_load\r\n File \"_frozen_importlib\", line 992, in _find_and_load\r\n File \"_frozen_importlib\", line 976, in _find_and_load_unlocked\r\n File \"_frozen_importlib\", line 687, in _load_unlocked\r\n File \"_frozen_importlib\", line 685, in _load_unlocked\r\n File \"_frozen_importlib\", line 678, in _load_unlocked\r\n File \"_frozen_importlib\", line 672, in _load_unlocked\r\n File \"_frozen_importlib_external\", line 783, in exec_module\r\n File \"_frozen_importlib\", line 219, in _call_with_frames_removed\r\n File \"/home/ryuta/.local/lib/rustpython3.9/site-packages/pytest/__init__.py\", line 3, in \u003cmodule>\r\n from . import collect\r\n File \"/home/ryuta/.local/lib/rustpython3.9/site-packages/pytest/collect.py\", line 8, in \u003cmodule>\r\n from _pytest.deprecated import PYTEST_COLLECT_MODULE\r\n File \"/home/ryuta/.local/lib/rustpython3.9/site-packages/_pytest/deprecated.py\", line 13, in \u003cmodule>\r\n from _pytest.warning_types import PytestDeprecationWarning\r\n File \"/home/ryuta/.local/lib/rustpython3.9/site-packages/_pytest/warning_types.py\", line 8, in \u003cmodule>\r\n from _pytest.compat import final\r\n File \"/home/ryuta/.local/lib/rustpython3.9/site-packages/_pytest/compat.py\", line 331, in \u003cmodule>\r\n from typing import final as final\r\nImportError: cannot import name 'final'\r\n```\r\n\r\n## Python Documentation\r\n\r\nhttps://docs.python.org/3/library/typing.html?highlight=typing#typing.final","author":{"url":"https://github.com/oroppas","@type":"Person","name":"oroppas"},"datePublished":"2021-05-17T01:06:15Z","url":"https://github.com/RustPython/RustPython/issues/2658"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:7156eb8e-5096-3d56-650d-8b6378a53e9d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A0FE:1C94F:34D1AC0:439A54D:6B022F2C |
| html-safe-nonce | 61d0ce4209c524c683471f7af7cc2a9d438fb4cca44a7ba19629d864bd99c792 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMEZFOjFDOTRGOjM0RDFBQzA6NDM5QTU0RDo2QjAyMkYyQyIsInZpc2l0b3JfaWQiOiIxMTc5MTE4NTk0OTk5NTk0Nzk2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c39682efb0841540dabd64f0cc7374b4403a3addec203eae0b12349bbed82ae4 |
| hovercard-subject-tag | issue:892806077 |
| 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/RustPython/RustPython/2658/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3476aaed4ce3fd0fc3037a4445cd682f23203b690c58949d6b81d262ec05454b/RustPython/RustPython/issues/2658 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3476aaed4ce3fd0fc3037a4445cd682f23203b690c58949d6b81d262ec05454b/RustPython/RustPython/issues/2658 |
| og:image:alt | Feature pytest's type checking depends on final from typing https://github.com/pytest-dev/pytest/blob/main/src/_pytest/compat.py#L348 rustpython -m pytest piconumpy -s Finished release [optimized] ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | oroppas |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width