Title: v14-Filters: CamelCase vs SCREAMING_SNAIL_CASE · Issue #2907 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: v14-Filters: CamelCase vs SCREAMING_SNAIL_CASE · Issue #2907 · python-telegram-bot/python-telegram-bot
X Title: v14-Filters: CamelCase vs SCREAMING_SNAIL_CASE · Issue #2907 · python-telegram-bot/python-telegram-bot
Description: After a bit internal discussion, we came up with the following naming rule: For simple cases, we have filters.CamelCase as filter class that needs to be initialized by the user and if applicable filters.CAMEL_CASE with a pre-instantiated...
Open Graph Description: After a bit internal discussion, we came up with the following naming rule: For simple cases, we have filters.CamelCase as filter class that needs to be initialized by the user and if applicable fi...
X Description: After a bit internal discussion, we came up with the following naming rule: For simple cases, we have filters.CamelCase as filter class that needs to be initialized by the user and if applicable fi...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/2907
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"v14-Filters: CamelCase vs SCREAMING_SNAIL_CASE","articleBody":"After a bit internal discussion, we came up with the following naming rule:\r\n\r\n* For simple cases, we have `filters.CamelCase` as filter class that needs to be initialized by the user and if applicable `filters.CAMEL_CASE` with a pre-instantiated shortcut\r\n* For cases where we have some kind of \"nested\" logic, i.e. subfilters that should be carried in the same namespace, we do something like `filters.CamelCase.{ALL, SUP_TYPE_1, SUP_TYPE_2}`. In this case `filters.CamelCase` may even be just a pure namespace class, i.e. not a subclass of `BaseFilter`\r\n\r\nAccordingly, `filters.DOCUMENT` should be moved to `filters.Document.ALL`.\r\n\r\nAdditionally, `filters.STICKER` should be replaced by `filters.Sticker.{ALL, ANIMATED, STATIC, VIDEO}` with `filters.Sticker` being a pure namespace class.\r\n\r\nIt may be worth squashing this into the first filters-refactor commit on the v14 branch …","author":{"url":"https://github.com/Bibo-Joshi","@type":"Person","name":"Bibo-Joshi"},"datePublished":"2022-02-18T20:52:43Z","url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/2907"}
| 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:a9b049ef-884d-5eb4-7d9a-5aa9d3d6ec14 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B140:62F48:200D2D8:29F7F4A:6B026CBC |
| html-safe-nonce | ef031e2e31075e126950df4d561f6054bcea3029e467a85db62dfa34c06bfd41 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTQwOjYyRjQ4OjIwMEQyRDg6MjlGN0Y0QTo2QjAyNkNCQyIsInZpc2l0b3JfaWQiOiI2MTE2MDk5NzkyODM5MDExNTE2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0fb50002b6f66130ebba942bf7efd7fcc3b722981f33429f4e77440156eb2903 |
| hovercard-subject-tag | issue:1143756037 |
| 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/python-telegram-bot/python-telegram-bot/2907/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6d25815a69057e433aa02b4f3372d0622e3a3fe82e6eff7eee80db71b586f26e/python-telegram-bot/python-telegram-bot/issues/2907 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6d25815a69057e433aa02b4f3372d0622e3a3fe82e6eff7eee80db71b586f26e/python-telegram-bot/python-telegram-bot/issues/2907 |
| og:image:alt | After a bit internal discussion, we came up with the following naming rule: For simple cases, we have filters.CamelCase as filter class that needs to be initialized by the user and if applicable fi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Bibo-Joshi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-telegram-bot/python-telegram-bot git https://github.com/python-telegram-bot/python-telegram-bot.git |
| octolytics-dimension-user_id | 16178365 |
| octolytics-dimension-user_login | python-telegram-bot |
| octolytics-dimension-repository_id | 38696925 |
| octolytics-dimension-repository_nwo | python-telegram-bot/python-telegram-bot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38696925 |
| octolytics-dimension-repository_network_root_nwo | python-telegram-bot/python-telegram-bot |
| 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