René's URL Explorer Experiment


Title: chore: light refactoring by vincentkoc · Pull Request #395 · google/python-fire · GitHub

Open Graph Title: chore: light refactoring by vincentkoc · Pull Request #395 · google/python-fire

X Title: chore: light refactoring by vincentkoc · Pull Request #395 · google/python-fire

Description: Some light refactoring and clean-up Remove excessive if/else f-name function use where possible

Open Graph Description: Some light refactoring and clean-up Remove excessive if/else f-name function use where possible

X Description: Some light refactoring and clean-up Remove excessive if/else f-name function use where possible

Opengraph URL: https://github.com/google/python-fire/pull/395

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:6cc62366-d336-dbdf-5b8c-480cc4d409b5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE3EC:115983:9BEE:D332:6B001947
html-safe-nonceb4f5bd90e8419a75741e9ca7756326ddbff45ec260d43fa998d63fb6395dae86
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0VDOjExNTk4Mzo5QkVFOkQzMzI6NkIwMDE5NDciLCJ2aXNpdG9yX2lkIjoiMTEwNTQ5MTE0MjE0Njg0OTk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac8f296826b74a867604817607a6e31652c0760448c330b3b024d2f115d87fa67b
hovercard-subject-tagpull_request:958394114
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/google/python-fire/pull/395/files
twitter:imagehttps://avatars.githubusercontent.com/u/25068?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/25068?s=400&v=4
og:image:altSome light refactoring and clean-up Remove excessive if/else f-name function use where possible
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonea2dd2291b1b13cc9c06f27ec92fa3dbaf34116fc24c9347b8539db61884c59f4
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/google/python-fire git https://github.com/google/python-fire.git
octolytics-dimension-user_id1342004
octolytics-dimension-user_logingoogle
octolytics-dimension-repository_id82729529
octolytics-dimension-repository_nwogoogle/python-fire
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id82729529
octolytics-dimension-repository_network_root_nwogoogle/python-fire
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release70121d4e855ee0bb7b75cf15d061d91f8863c0f8
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/google/python-fire/pull/395/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogle%2Fpython-fire%2Fpull%2F395%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogle%2Fpython-fire%2Fpull%2F395%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=google%2Fpython-fire
Reloadhttps://github.com/google/python-fire/pull/395/files
Reloadhttps://github.com/google/python-fire/pull/395/files
Reloadhttps://github.com/google/python-fire/pull/395/files
googlehttps://github.com/google
python-firehttps://github.com/google/python-fire
Codehttps://github.com/google/python-fire
Issues146 (146)https://github.com/google/python-fire/issues
Pull requests85 (85)https://github.com/google/python-fire/pulls
Actionshttps://github.com/google/python-fire/actions
Projectshttps://github.com/google/python-fire/projects
Security and qualityhttps://github.com/google/python-fire/security
Insightshttps://github.com/google/python-fire/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fgoogle%2Fpython-fire%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgoogle%2Fpython-fire%2Fissues%2Fnew%2Fchoose
vincentkochttps://github.com/vincentkoc
google:masterhttps://github.com/google/python-fire/tree/master
vincentkoc:masterhttps://github.com/vincentkoc/python-fire/tree/master
Conversation 1 https://github.com/google/python-fire/pull/395
Commits 3 https://github.com/google/python-fire/pull/395/commits
Checks 0 https://github.com/google/python-fire/pull/395/checks
Files changed https://github.com/google/python-fire/pull/395/files
Please reload this pagehttps://github.com/google/python-fire/pull/395/files
chore: light refactoring https://github.com/google/python-fire/pull/395/files#top
Show all changes 3 commits https://github.com/google/python-fire/pull/395/files
353a290 test refactor Jun 5, 2022 https://github.com/google/python-fire/pull/395/commits/353a29091d1ff49c577f3153943d970fae341d86
6e28b68 formatting refactor Jun 5, 2022 https://github.com/google/python-fire/pull/395/commits/6e28b688140530d4ae1faea026b6da8127d88802
d390864 Update diff_test.py Jun 5, 2022 https://github.com/google/python-fire/pull/395/commits/d390864862b41d19456b2abc69d1ab7e810527dd
Clear filters https://github.com/google/python-fire/pull/395/files
Please reload this pagehttps://github.com/google/python-fire/pull/395/files
Please reload this pagehttps://github.com/google/python-fire/pull/395/files
diff_test.py https://github.com/google/python-fire/pull/395/files#diff-748e100f7b5b9f540e2ec64724f964964b55bd423f6e3970fb581d86d58f90c8
formatting.py https://github.com/google/python-fire/pull/395/files#diff-0b29a976f5b59bbc2b2436d384aa919838540303f44e046a1925a9494fec47a0
formatting_windows.py https://github.com/google/python-fire/pull/395/files#diff-6f3b3f0617b47c3f680de822e4dd77a1801d526f35e467d93310ebea7899b4b4
helptext.py https://github.com/google/python-fire/pull/395/files#diff-470cb563bc57d70f550c94f0bb4b0e1f0d635af5541194e6ebcecda93170246d
helptext_test.py https://github.com/google/python-fire/pull/395/files#diff-ea8f6442e3fa13ab4758cfc1fae501b4ff98bb510e04d1370daeb4d917c3a1e8
test_components.py https://github.com/google/python-fire/pull/395/files#diff-0a85d0cc80b635d47959579569b4f7aac45d66fcf5a61261d02e2ce943fe94a4
test_components_py3.py https://github.com/google/python-fire/pull/395/files#diff-e919d07137714ca07440ec0ee88f9583e3cbf8709030769f4668843bbdb5370c
trace.py https://github.com/google/python-fire/pull/395/files#diff-1fca4711a67300a0ff079404569f63e7a240813dadd2e9eb46b9b4ce5acfdb6d
examples/diff/diff_test.pyhttps://github.com/google/python-fire/pull/395/files#diff-748e100f7b5b9f540e2ec64724f964964b55bd423f6e3970fb581d86d58f90c8
View file https://github.com/vincentkoc/python-fire/blob/d390864862b41d19456b2abc69d1ab7e810527dd/examples/diff/diff_test.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/google/python-fire/pull/395/{{ revealButtonHref }}
https://github.com/google/python-fire/pull/395/files#diff-748e100f7b5b9f540e2ec64724f964964b55bd423f6e3970fb581d86d58f90c8
https://github.com/google/python-fire/pull/395/files#diff-748e100f7b5b9f540e2ec64724f964964b55bd423f6e3970fb581d86d58f90c8
fire/formatting.pyhttps://github.com/google/python-fire/pull/395/files#diff-0b29a976f5b59bbc2b2436d384aa919838540303f44e046a1925a9494fec47a0
View file https://github.com/vincentkoc/python-fire/blob/d390864862b41d19456b2abc69d1ab7e810527dd/fire/formatting.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/google/python-fire/pull/395/{{ revealButtonHref }}
https://github.com/google/python-fire/pull/395/files#diff-0b29a976f5b59bbc2b2436d384aa919838540303f44e046a1925a9494fec47a0
https://github.com/google/python-fire/pull/395/files#diff-0b29a976f5b59bbc2b2436d384aa919838540303f44e046a1925a9494fec47a0
fire/formatting_windows.pyhttps://github.com/google/python-fire/pull/395/files#diff-6f3b3f0617b47c3f680de822e4dd77a1801d526f35e467d93310ebea7899b4b4
View file https://github.com/vincentkoc/python-fire/blob/d390864862b41d19456b2abc69d1ab7e810527dd/fire/formatting_windows.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/google/python-fire/pull/395/{{ revealButtonHref }}
https://github.com/google/python-fire/pull/395/files#diff-6f3b3f0617b47c3f680de822e4dd77a1801d526f35e467d93310ebea7899b4b4
https://github.com/google/python-fire/pull/395/files#diff-6f3b3f0617b47c3f680de822e4dd77a1801d526f35e467d93310ebea7899b4b4
fire/helptext.pyhttps://github.com/google/python-fire/pull/395/files#diff-470cb563bc57d70f550c94f0bb4b0e1f0d635af5541194e6ebcecda93170246d
View file https://github.com/vincentkoc/python-fire/blob/d390864862b41d19456b2abc69d1ab7e810527dd/fire/helptext.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/google/python-fire/pull/395/{{ revealButtonHref }}
https://github.com/google/python-fire/pull/395/files#diff-470cb563bc57d70f550c94f0bb4b0e1f0d635af5541194e6ebcecda93170246d
https://github.com/google/python-fire/pull/395/files#diff-470cb563bc57d70f550c94f0bb4b0e1f0d635af5541194e6ebcecda93170246d
https://github.com/google/python-fire/pull/395/files#diff-470cb563bc57d70f550c94f0bb4b0e1f0d635af5541194e6ebcecda93170246d
https://github.com/google/python-fire/pull/395/files#diff-470cb563bc57d70f550c94f0bb4b0e1f0d635af5541194e6ebcecda93170246d
https://github.com/google/python-fire/pull/395/files#diff-470cb563bc57d70f550c94f0bb4b0e1f0d635af5541194e6ebcecda93170246d
https://github.com/google/python-fire/pull/395/files#diff-470cb563bc57d70f550c94f0bb4b0e1f0d635af5541194e6ebcecda93170246d
https://github.com/google/python-fire/pull/395/files#diff-470cb563bc57d70f550c94f0bb4b0e1f0d635af5541194e6ebcecda93170246d
https://github.com/google/python-fire/pull/395/files#diff-470cb563bc57d70f550c94f0bb4b0e1f0d635af5541194e6ebcecda93170246d
https://github.com/google/python-fire/pull/395/files#diff-470cb563bc57d70f550c94f0bb4b0e1f0d635af5541194e6ebcecda93170246d
https://github.com/google/python-fire/pull/395/files#diff-470cb563bc57d70f550c94f0bb4b0e1f0d635af5541194e6ebcecda93170246d
https://github.com/google/python-fire/pull/395/files#diff-470cb563bc57d70f550c94f0bb4b0e1f0d635af5541194e6ebcecda93170246d
https://github.com/google/python-fire/pull/395/files#diff-470cb563bc57d70f550c94f0bb4b0e1f0d635af5541194e6ebcecda93170246d
https://github.com/google/python-fire/pull/395/files#diff-470cb563bc57d70f550c94f0bb4b0e1f0d635af5541194e6ebcecda93170246d
https://github.com/google/python-fire/pull/395/files#diff-470cb563bc57d70f550c94f0bb4b0e1f0d635af5541194e6ebcecda93170246d
https://github.com/google/python-fire/pull/395/files#diff-470cb563bc57d70f550c94f0bb4b0e1f0d635af5541194e6ebcecda93170246d
fire/helptext_test.pyhttps://github.com/google/python-fire/pull/395/files#diff-ea8f6442e3fa13ab4758cfc1fae501b4ff98bb510e04d1370daeb4d917c3a1e8
View file https://github.com/vincentkoc/python-fire/blob/d390864862b41d19456b2abc69d1ab7e810527dd/fire/helptext_test.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/google/python-fire/pull/395/{{ revealButtonHref }}
https://github.com/google/python-fire/pull/395/files#diff-ea8f6442e3fa13ab4758cfc1fae501b4ff98bb510e04d1370daeb4d917c3a1e8
https://github.com/google/python-fire/pull/395/files#diff-ea8f6442e3fa13ab4758cfc1fae501b4ff98bb510e04d1370daeb4d917c3a1e8
https://github.com/google/python-fire/pull/395/files#diff-ea8f6442e3fa13ab4758cfc1fae501b4ff98bb510e04d1370daeb4d917c3a1e8
https://github.com/google/python-fire/pull/395/files#diff-ea8f6442e3fa13ab4758cfc1fae501b4ff98bb510e04d1370daeb4d917c3a1e8
https://github.com/google/python-fire/pull/395/files#diff-ea8f6442e3fa13ab4758cfc1fae501b4ff98bb510e04d1370daeb4d917c3a1e8
fire/test_components.pyhttps://github.com/google/python-fire/pull/395/files#diff-0a85d0cc80b635d47959579569b4f7aac45d66fcf5a61261d02e2ce943fe94a4
View file https://github.com/vincentkoc/python-fire/blob/d390864862b41d19456b2abc69d1ab7e810527dd/fire/test_components.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/google/python-fire/pull/395/{{ revealButtonHref }}
https://github.com/google/python-fire/pull/395/files#diff-0a85d0cc80b635d47959579569b4f7aac45d66fcf5a61261d02e2ce943fe94a4
https://github.com/google/python-fire/pull/395/files#diff-0a85d0cc80b635d47959579569b4f7aac45d66fcf5a61261d02e2ce943fe94a4
https://github.com/google/python-fire/pull/395/files#diff-0a85d0cc80b635d47959579569b4f7aac45d66fcf5a61261d02e2ce943fe94a4
https://github.com/google/python-fire/pull/395/files#diff-0a85d0cc80b635d47959579569b4f7aac45d66fcf5a61261d02e2ce943fe94a4
https://github.com/google/python-fire/pull/395/files#diff-0a85d0cc80b635d47959579569b4f7aac45d66fcf5a61261d02e2ce943fe94a4
https://github.com/google/python-fire/pull/395/files#diff-0a85d0cc80b635d47959579569b4f7aac45d66fcf5a61261d02e2ce943fe94a4
fire/test_components_py3.pyhttps://github.com/google/python-fire/pull/395/files#diff-e919d07137714ca07440ec0ee88f9583e3cbf8709030769f4668843bbdb5370c
View file https://github.com/vincentkoc/python-fire/blob/d390864862b41d19456b2abc69d1ab7e810527dd/fire/test_components_py3.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/google/python-fire/pull/395/{{ revealButtonHref }}
https://github.com/google/python-fire/pull/395/files#diff-e919d07137714ca07440ec0ee88f9583e3cbf8709030769f4668843bbdb5370c
https://github.com/google/python-fire/pull/395/files#diff-e919d07137714ca07440ec0ee88f9583e3cbf8709030769f4668843bbdb5370c
fire/trace.pyhttps://github.com/google/python-fire/pull/395/files#diff-1fca4711a67300a0ff079404569f63e7a240813dadd2e9eb46b9b4ce5acfdb6d
View file https://github.com/vincentkoc/python-fire/blob/d390864862b41d19456b2abc69d1ab7e810527dd/fire/trace.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/google/python-fire/pull/395/{{ revealButtonHref }}
https://github.com/google/python-fire/pull/395/files#diff-1fca4711a67300a0ff079404569f63e7a240813dadd2e9eb46b9b4ce5acfdb6d
https://github.com/google/python-fire/pull/395/files#diff-1fca4711a67300a0ff079404569f63e7a240813dadd2e9eb46b9b4ce5acfdb6d
https://github.com/google/python-fire/pull/395/files#diff-1fca4711a67300a0ff079404569f63e7a240813dadd2e9eb46b9b4ce5acfdb6d
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.