Skip to content

Commit cbb856a

Browse files
committed
Split long sentence up, moved lang.type example log up
1 parent 7d5eefa commit cbb856a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

programming-languages/docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
> ### _File extensions for programming languages._
1515
16-
It's just a [JSON file](https://github.com/adamlui/python-utils/blob/programming-languages-1.0.0/programming-languages/src/programming_languages/languages.json), so you can use it in any environment. Sourced from GitHub's [Linguist](https://github.com/github-linguist/linguist) project (defines all 700+ languages known to GitHub), the data is updated via script and released w/ each new version.
16+
It's just a [JSON file](https://github.com/adamlui/python-utils/blob/programming-languages-1.0.0/programming-languages/src/programming_languages/languages.json), so you can use it in any environment. Sourced from GitHub's [Linguist](https://github.com/github-linguist/linguist) project (defines all 700+ languages known to GitHub). Data is updated via script and released w/ each new version.
1717

1818
## Installation
1919

@@ -28,8 +28,8 @@ import programming_languages
2828

2929
py_lang_data = programming_languages['Python']
3030

31-
print(py_lang_data['extensions']) # => ['.py', '.cgi', '.fcgi', ...]
3231
print(py_lang_data['type']) # => 'programming'
32+
print(py_lang_data['extensions']) # => ['.py', '.cgi', '.fcgi', ...]
3333
```
3434

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

0 commit comments

Comments
 (0)