Simple string argument is Converted to integer because input only contains numeric data
- Ngôn ngữ chính
- Python
- Star
- 28.2k
- Fork
- 1.5k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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
```Python3
import fire
from fire import Fire
print(fire.__version__)
def sample(sequence:str):
print(sequence, type(sequence))
Fire(sample)
```
```bash
$ python3 ./sample.py "00"
0.5.0
0
```
Expected behavior: "00" string type
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.