Title: Deprecations · Issue #26 · DHI/python-package-development · GitHub
Open Graph Title: Deprecations · Issue #26 · DHI/python-package-development
X Title: Deprecations · Issue #26 · DHI/python-package-development
Description: https://docs.python.org/3/library/warnings.html#warnings.deprecated Added in version 3.13: See PEP 702. from warnings import deprecated @deprecated("Use the new way instead") def the_old_way(): print("God dag!") def main(): print("Hello ...
Open Graph Description: https://docs.python.org/3/library/warnings.html#warnings.deprecated Added in version 3.13: See PEP 702. from warnings import deprecated @deprecated("Use the new way instead") def the_old_way(): pri...
X Description: https://docs.python.org/3/library/warnings.html#warnings.deprecated Added in version 3.13: See PEP 702. from warnings import deprecated @deprecated("Use the new way instead") def the_old_...
Opengraph URL: https://github.com/DHI/python-package-development/issues/26
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Deprecations","articleBody":"\n\nhttps://docs.python.org/3/library/warnings.html#warnings.deprecated\n*Added in version 3.13: See [PEP 702](https://peps.python.org/pep-0702/).*\n\n```python\nfrom warnings import deprecated\n\n@deprecated(\"Use the new way instead\")\ndef the_old_way():\n print(\"God dag!\")\n\n\ndef main():\n print(\"Hello from foo!\")\n\n\nif __name__ == \"__main__\":\n main()\n the_old_way()\n```\n\n```bash\n$ uv run mypy main.py --enable-error-code=deprecated\nmain.py:15: error: function main.the_old_way is deprecated: Use the new way instead [deprecated]\nFound 1 error in 1 file (checked 1 source file)\n```","author":{"url":"https://github.com/ecomodeller","@type":"Person","name":"ecomodeller"},"datePublished":"2025-03-31T12:39:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/26/python-package-development/issues/26"}
| 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:0bed0204-e975-4bb3-3bdf-24462cb8c59f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 98B0:B22A0:28B9218:3695FBF:696EE68F |
| html-safe-nonce | a4f5b334a5f022d7a49ac57566705eeb12c156dcab6c59d043f3808fe735931f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEIwOkIyMkEwOjI4QjkyMTg6MzY5NUZCRjo2OTZFRTY4RiIsInZpc2l0b3JfaWQiOiI4NDM2NTc4MTc3OTY1Mjg3MDU1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9c31c41a600415625acad4087570b60a39eb7937d1579d972887e204535c50f9 |
| hovercard-subject-tag | issue:2960383738 |
| 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/DHI/python-package-development/26/issue_layout |
| twitter:image | https://opengraph.githubassets.com/71b49c8f0c00dfe6dca1b89866f861f93d8170f4c4a3724397549a29bc107d97/DHI/python-package-development/issues/26 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/71b49c8f0c00dfe6dca1b89866f861f93d8170f4c4a3724397549a29bc107d97/DHI/python-package-development/issues/26 |
| og:image:alt | https://docs.python.org/3/library/warnings.html#warnings.deprecated Added in version 3.13: See PEP 702. from warnings import deprecated @deprecated("Use the new way instead") def the_old_way(): pri... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ecomodeller |
| hostname | github.com |
| expected-hostname | github.com |
| None | b278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee |
| turbo-cache-control | no-preview |
| go-import | github.com/DHI/python-package-development git https://github.com/DHI/python-package-development.git |
| octolytics-dimension-user_id | 32934768 |
| octolytics-dimension-user_login | DHI |
| octolytics-dimension-repository_id | 595599266 |
| octolytics-dimension-repository_nwo | DHI/python-package-development |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 595599266 |
| octolytics-dimension-repository_network_root_nwo | DHI/python-package-development |
| 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 | 39aed5006635ab6f45e6b77d23e73b08a00272a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width