Title: [FEATURE REQUEST] typed arguments · Issue #300 · google/python-fire · GitHub
Open Graph Title: [FEATURE REQUEST] typed arguments · Issue #300 · google/python-fire
X Title: [FEATURE REQUEST] typed arguments · Issue #300 · google/python-fire
Description: If I write a typed variable argument, I am expecting an argument of a specific type. Example: import fire def test(some_str: str): print(some_str) if __name__ == "__main__": fire.Fire() Real result: python test.py test 7.30 7.3 Expected ...
Open Graph Description: If I write a typed variable argument, I am expecting an argument of a specific type. Example: import fire def test(some_str: str): print(some_str) if __name__ == "__main__": fire.Fire() Real result...
X Description: If I write a typed variable argument, I am expecting an argument of a specific type. Example: import fire def test(some_str: str): print(some_str) if __name__ == "__main__": fire.Fire() R...
Opengraph URL: https://github.com/google/python-fire/issues/300
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[FEATURE REQUEST] typed arguments ","articleBody":"If I write a typed variable argument, I am expecting an argument of a specific type.\r\nExample:\r\n\r\n```python\r\nimport fire\r\n\r\ndef test(some_str: str):\r\n print(some_str)\r\n\r\nif __name__ == \"__main__\":\r\n fire.Fire()\r\n```\r\n\r\nReal result: \r\n\r\n```shell\r\npython test.py test 7.30\r\n7.3\r\n```\r\n\r\nExpected Result:\r\n\r\n```shell\r\npython test.py test 7.30\r\n7.30\r\n```\r\n\r\nSo this feature will not break [argument parsing](https://github.com/google/python-fire/blob/master/docs/guide.md#argument-parsing). The typed argument should be enough to detect the real type.","author":{"url":"https://github.com/Nov1kov","@type":"Person","name":"Nov1kov"},"datePublished":"2020-12-04T13:49:19Z","url":"https://github.com/google/python-fire/issues/300"}
| 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:04cee1b5-d955-9ba7-485a-a83873f4cde0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C5A8:5314B:2D90379:3C1DA2A:6B002258 |
| html-safe-nonce | 449cea5aae456414aebfa07186ea941fa5a21b2b6e302b4c1027bdeec5925c6f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUE4OjUzMTRCOjJEOTAzNzk6M0MxREEyQTo2QjAwMjI1OCIsInZpc2l0b3JfaWQiOiIzODMyMzUwMTE1ODQ3Mjk2ODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ecae0a354f0951dd641c3ee11c793661a1815f3a9cd4d4d48941c529ecd7f11e |
| hovercard-subject-tag | issue:757116522 |
| 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/google/python-fire/300/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4d0c70a0701a85a3362f805a849a78ff492b6894c2c3e4e07ca0f829a936e311/google/python-fire/issues/300 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4d0c70a0701a85a3362f805a849a78ff492b6894c2c3e4e07ca0f829a936e311/google/python-fire/issues/300 |
| og:image:alt | If I write a typed variable argument, I am expecting an argument of a specific type. Example: import fire def test(some_str: str): print(some_str) if __name__ == "__main__": fire.Fire() Real result... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Nov1kov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| turbo-cache-control | no-preview |
| go-import | github.com/google/python-fire git https://github.com/google/python-fire.git |
| octolytics-dimension-user_id | 1342004 |
| octolytics-dimension-user_login | |
| octolytics-dimension-repository_id | 82729529 |
| octolytics-dimension-repository_nwo | google/python-fire |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 82729529 |
| octolytics-dimension-repository_network_root_nwo | google/python-fire |
| 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 | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width