Skip to content

Commit a71570a

Browse files
committed
Condensed API usage example, added arrows
1 parent 85a84c7 commit a71570a

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

get-min-py/docs/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,11 @@ CLI options:
4545
```py
4646
import get_min_py
4747

48-
# Single package
4948
result = get_min_py('requests')
50-
print(result) # '3.9'
49+
print(result) # => '3.9'
5150

52-
# Multiple packages
5351
results = get_min_py(['numpy', 'pandas', 'flask'])
54-
print(results) # ['3.11', '3.11', '3.9']
52+
print(results) # => ['3.11', '3.11', '3.9']
5553
```
5654

5755
_Note: Most type checkers will falsely warn_ `get_min_py` _is not a callable module because they are incapable of analyzing runtime behavior (where the module is replaced w/ a function for cleaner, direct access). You can safely suppress such warnings using_ `# type: ignore`.

0 commit comments

Comments
 (0)