Title: Simple string argument is Converted to integer because input only contains numeric data · Issue #453 · google/python-fire · GitHub
Open Graph Title: Simple string argument is Converted to integer because input only contains numeric data · Issue #453 · google/python-fire
X Title: Simple string argument is Converted to integer because input only contains numeric data · Issue #453 · google/python-fire
Description: A simple argument is automatically converted to integer because the input only has numeric data in a string. I wondered if it is a wanted feature. Thank you Python3 version = Pyton3.8.10 Fire version = 0.5 file sample.py import fire from...
Open Graph Description: A simple argument is automatically converted to integer because the input only has numeric data in a string. I wondered if it is a wanted feature. Thank you Python3 version = Pyton3.8.10 Fire versi...
X Description: A simple argument is automatically converted to integer because the input only has numeric data in a string. I wondered if it is a wanted feature. Thank you Python3 version = Pyton3.8.10 Fire versi...
Opengraph URL: https://github.com/google/python-fire/issues/453
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Simple string argument is Converted to integer because input only contains numeric data","articleBody":"A simple argument is automatically converted to integer because the input only has numeric data in a string. I wondered if it is a wanted feature. Thank you\r\n\r\nPython3 version = Pyton3.8.10\r\nFire version = 0.5\r\n\r\nfile sample.py\r\n```Python3\r\nimport fire \r\nfrom fire import Fire \r\n \r\nprint(fire.__version__) \r\n \r\ndef sample(sequence:str): \r\n print(sequence, type(sequence)) \r\n \r\nFire(sample) \r\n```\r\n```bash\r\n$ python3 ./sample.py \"00\" \r\n0.5.0 \r\n0 \u003cclass 'int'>\r\n``` \r\n\r\nExpected behavior: \"00\" string type\r\n\r\n","author":{"url":"https://github.com/kanaryayi","@type":"Person","name":"kanaryayi"},"datePublished":"2023-05-06T20:30:45Z","url":"https://github.com/google/python-fire/issues/453"}
| 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:8d7bc2ac-d85a-e481-e464-8177a6b3c6d9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 90F8:18FDF5:265F2A:33972B:6B002360 |
| html-safe-nonce | e8e3307a93ce49d46784e08556e6eea6a8190eb42a8371acf4114985074620b1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEY4OjE4RkRGNToyNjVGMkE6MzM5NzJCOjZCMDAyMzYwIiwidmlzaXRvcl9pZCI6IjU3MDQxMTM1NzE4OTAyMDk2MzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7213de66350ada2f0361f7e355e397baec5c261961e8cbeae388713d02a06c1c |
| hovercard-subject-tag | issue:1698768016 |
| 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/453/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7108fb96558ccfa384f261fb078c44ac4d60945169faaadc85f6d2ff24af28b8/google/python-fire/issues/453 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7108fb96558ccfa384f261fb078c44ac4d60945169faaadc85f6d2ff24af28b8/google/python-fire/issues/453 |
| og:image:alt | A simple argument is automatically converted to integer because the input only has numeric data in a string. I wondered if it is a wanted feature. Thank you Python3 version = Pyton3.8.10 Fire versi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kanaryayi |
| 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