| 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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:38648da8-1627-c08e-a51a-2f47af16381a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B6D2:34D1AC:366CD5:4D4B8B:6AFC79E3 |
| html-safe-nonce | 82a844e4b7965467e9f49696f7bb31bcc4c4d7a8f729deac62579c6956b96dea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkQyOjM0RDFBQzozNjZDRDU6NEQ0QjhCOjZBRkM3OUUzIiwidmlzaXRvcl9pZCI6IjYwNzQ3MzU5NjM1MzgyMjU2MzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 15b63566cc0f06334ceef470ec9b985728765bab42168dbeef0b62552801002a |
| hovercard-subject-tag | pull_request:3902696605 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/faif/python-patterns/475/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/d241844ba5105b5e911363c517d226a804db7719d09ced9e958727b0b7d82a03/faif/python-patterns/pull/475 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d241844ba5105b5e911363c517d226a804db7719d09ced9e958727b0b7d82a03/faif/python-patterns/pull/475 |
| og:image:alt | Summary
This PR adds two new design patterns and enhances an existing one:
New Patterns
Null Object (Behavioral): Provides a default do-nothing object to eliminate null checks. Includes a Customer... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | abdalwahab-daw |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9967113b19ce6f9ef25d0965e4c359b2d0e9fc51c620530e3c7620782f4589c2 |
| turbo-cache-control | no-cache |
| go-import | github.com/faif/python-patterns git https://github.com/faif/python-patterns.git |
| octolytics-dimension-user_id | 1304661 |
| octolytics-dimension-user_login | faif |
| octolytics-dimension-repository_id | 4578002 |
| octolytics-dimension-repository_nwo | faif/python-patterns |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 4578002 |
| octolytics-dimension-repository_network_root_nwo | faif/python-patterns |
| 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 | e46df04c2d25927b26b614faa158020e4dfe4698 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/faif/python-patterns/pull/475#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffaif%2Fpython-patterns%2Fpull%2F475 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffaif%2Fpython-patterns%2Fpull%2F475 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=faif%2Fpython-patterns |
| Reload | https://github.com/faif/python-patterns/pull/475 |
| Reload | https://github.com/faif/python-patterns/pull/475 |
| Reload | https://github.com/faif/python-patterns/pull/475 |
| faif | https://github.com/faif |
| python-patterns | https://github.com/faif/python-patterns |
| Code | https://github.com/faif/python-patterns |
| Issues9 (9) | https://github.com/faif/python-patterns/issues |
| Pull requests3 (3) | https://github.com/faif/python-patterns/pulls |
| Actions | https://github.com/faif/python-patterns/actions |
| Projects | https://github.com/faif/python-patterns/projects |
| Wiki | https://github.com/faif/python-patterns/wiki |
| Security and quality | https://github.com/faif/python-patterns/security |
| Insights | https://github.com/faif/python-patterns/pulse |
| https://github.com/faif/python-patterns |
| abdalwahab-daw | https://github.com/abdalwahab-daw |
| faif:master | https://github.com/faif/python-patterns/tree/master |
| abdalwahab-daw:master | https://github.com/abdalwahab-daw/python-patterns/tree/master |
| Conversation | https://github.com/faif/python-patterns/pull/475 |
| Commits4 (4) | https://github.com/faif/python-patterns/pull/475/commits |
| Checks | https://github.com/faif/python-patterns/pull/475/checks |
| Files changed | https://github.com/faif/python-patterns/pull/475/files |
| Add Null Object and Singleton patterns, enhance Specification | https://github.com/faif/python-patterns/pull/475#top |
| abdalwahab-daw | https://github.com/abdalwahab-daw |
| faif:master | https://github.com/faif/python-patterns/tree/master |
| abdalwahab-daw:master | https://github.com/abdalwahab-daw/python-patterns/tree/master |
|
| https://github.com/abdalwahab-daw |
| abdalwahab-daw | https://github.com/abdalwahab-daw |
| Jun 20, 2026 | https://github.com/faif/python-patterns/pull/475#issue-4705549621 |
| Please reload this page | https://github.com/faif/python-patterns/pull/475 |
| abdalwahab-daw | https://github.com/abdalwahab-daw |
| June 20, 2026 09:11 | https://github.com/faif/python-patterns/pull/475#commits-pushed-b5f0262 |
|
| https://github.com/abdalwahab-daw |
| Add Null Object and Singleton patterns, enhance Specification | https://github.com/faif/python-patterns/pull/475/commits/b5f026295b4d7092754db5bb577cb1e79f1f784f |
| b5f0262 | https://github.com/faif/python-patterns/pull/475/commits/b5f026295b4d7092754db5bb577cb1e79f1f784f |
|
| https://github.com/abdalwahab-daw |
| Add pytest test suites for Null Object, Specification, and Singleton | https://github.com/faif/python-patterns/pull/475/commits/7ffb182f5fba022f60ca8ad8fbe30692bd9d1c19 |
| 7ffb182 | https://github.com/faif/python-patterns/pull/475/commits/7ffb182f5fba022f60ca8ad8fbe30692bd9d1c19 |
|
| https://github.com/abdalwahab-daw |
| Add patterns_toolkit with reusable templates and real-world examples | https://github.com/faif/python-patterns/pull/475/commits/541f3a841bfb4339d77b4949ec2a163068a6ea1a |
| 541f3a8 | https://github.com/faif/python-patterns/pull/475/commits/541f3a841bfb4339d77b4949ec2a163068a6ea1a |
|
| https://github.com/abdalwahab-daw |
| Add comprehensive practical applications guide | https://github.com/faif/python-patterns/pull/475/commits/24cb839fb5f80b0d3a688c74dae37909809082f6 |
| 24cb839 | https://github.com/faif/python-patterns/pull/475/commits/24cb839fb5f80b0d3a688c74dae37909809082f6 |
| https://github.com/faif |
| faif | https://github.com/faif |
|
Jun 21, 2026
| https://github.com/faif/python-patterns/pull/475#pullrequestreview-4539683840 |
|
View reviewed changes
| https://github.com/faif/python-patterns/pull/475/files/24cb839fb5f80b0d3a688c74dae37909809082f6 |
| patterns/creational/singleton.py | https://github.com/faif/python-patterns/pull/475/files/24cb839fb5f80b0d3a688c74dae37909809082f6#diff-56d6364e8eb5dca9d0c09a4faffc92bea15f2cec887d694fd4388a7c07c99ea8 |
| faif | https://github.com/faif |
| Jun 21, 2026 | https://github.com/faif/python-patterns/pull/475#discussion_r3448406646 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/faif/python-patterns/pull/475 |
| https://github.com/Ronit049 |
| Ronit049 | https://github.com/Ronit049 |
| Oct 7, 2026 | https://github.com/faif/python-patterns/pull/475#issuecomment-6043271719 |
| Please reload this page | https://github.com/faif/python-patterns/pull/475 |
| https://github.com/faif |
| faif | https://github.com/faif |
| Oct 9, 2026 | https://github.com/faif/python-patterns/pull/475#issuecomment-6083427701 |
| Please reload this page | https://github.com/faif/python-patterns/pull/475 |
| https://github.co/hiddenchars |
| https://github.com/faif/python-patterns/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffaif%2Fpython-patterns%2Fpull%2F475 |
|
| https://github.com/faif |
|
faif
| https://github.com/faif |
|
| https://github.com/faif/python-patterns/pull/475/files/24cb839fb5f80b0d3a688c74dae37909809082f6 |
| Please reload this page | https://github.com/faif/python-patterns/pull/475 |
| Please reload this page | https://github.com/faif/python-patterns/pull/475 |
|
| https://github.com/abdalwahab-daw |
|
| https://github.com/Ronit049 |
|
| https://github.com/faif |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |