Title: Remove constants=None; explicit None raises with migration hint · Issue #261 · derek73/python-nameparser · GitHub
Open Graph Title: Remove constants=None; explicit None raises with migration hint · Issue #261 · derek73/python-nameparser
X Title: Remove constants=None; explicit None raises with migration hint · Issue #261 · derek73/python-nameparser
Description: Completes #260 (which ships Constants.copy() and the DeprecationWarning in 1.4). In 2.0, explicit constants=None raises TypeError naming both replacements: constants=Constants() for fresh library defaults constants=CONSTANTS.copy() for a...
Open Graph Description: Completes #260 (which ships Constants.copy() and the DeprecationWarning in 1.4). In 2.0, explicit constants=None raises TypeError naming both replacements: constants=Constants() for fresh library d...
X Description: Completes #260 (which ships Constants.copy() and the DeprecationWarning in 1.4). In 2.0, explicit constants=None raises TypeError naming both replacements: constants=Constants() for fresh library d...
Opengraph URL: https://github.com/derek73/python-nameparser/issues/261
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Remove constants=None; explicit None raises with migration hint","articleBody":"Completes #260 (which ships `Constants.copy()` and the `DeprecationWarning` in 1.4). In 2.0, explicit `constants=None` raises `TypeError` naming both replacements:\n\n- `constants=Constants()` for fresh library defaults\n- `constants=CONSTANTS.copy()` for a private snapshot of current shared config\n\nIt must *raise*, never be reinterpreted — silently flipping `None` to mean \"shared\" would invisibly change behavior for every existing caller.\n\n## Checklist\n\n- [ ] Explicit `None` raises `TypeError` with the migration hint\n- [ ] Remove the `None`-constructs-`Constants()` branch from `__init__`; annotation narrows to `constants: Constants = CONSTANTS`\n- [ ] Update customize.rst mentions and the migration section\n","author":{"url":"https://github.com/derek73","@type":"Person","name":"derek73"},"datePublished":"2026-07-06T08:14:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/261/python-nameparser/issues/261"}
| 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:20838113-b188-da8d-6eb6-93da28ca60f3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B8CA:2D610E:BB26C6:FCCD21:6A570000 |
| html-safe-nonce | b32c05605763ce26e55e5bef4edef4c42842b9a4ed9515676da2bc9deabeff9f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOENBOjJENjEwRTpCQjI2QzY6RkNDRDIxOjZBNTcwMDAwIiwidmlzaXRvcl9pZCI6IjU2ODc0OTY3OTQzODI0NjcwNzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 63bb544107e96fed244e41de02c2e238dbd2257f83f6626a34f75c6d66b438bc |
| hovercard-subject-tag | issue:4817244978 |
| 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/derek73/python-nameparser/261/issue_layout |
| twitter:image | https://opengraph.githubassets.com/89d8ea23965c13e6b27fa0ac79e92ea75b69f0da061b905aff162c87671d5e88/derek73/python-nameparser/issues/261 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/89d8ea23965c13e6b27fa0ac79e92ea75b69f0da061b905aff162c87671d5e88/derek73/python-nameparser/issues/261 |
| og:image:alt | Completes #260 (which ships Constants.copy() and the DeprecationWarning in 1.4). In 2.0, explicit constants=None raises TypeError naming both replacements: constants=Constants() for fresh library d... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | derek73 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb29e5f807bd95e41196adfbc6d28f9af12d89830d8b684f3e871774ddff2fc |
| turbo-cache-control | no-preview |
| go-import | github.com/derek73/python-nameparser git https://github.com/derek73/python-nameparser.git |
| octolytics-dimension-user_id | 18306 |
| octolytics-dimension-user_login | derek73 |
| octolytics-dimension-repository_id | 18353524 |
| octolytics-dimension-repository_nwo | derek73/python-nameparser |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 18353524 |
| octolytics-dimension-repository_network_root_nwo | derek73/python-nameparser |
| 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 | b056788a129fb0194b61f2ebb4c43f6a9f4dfd27 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width