Skip to content

Commit bb057ce

Browse files
committed
Inserted lang_ into lang data var names
1 parent 5835899 commit bb057ce

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

data-languages/docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ pip install data-languages
2626
```py
2727
import data_languages
2828

29-
json_data = data_languages['JSON']
29+
json_lang_data = data_languages['JSON']
3030

31-
print(json_data['extensions']) # => ['.4DForm', '.4DProject', '.avsc', ...]
31+
print(json_lang_data['extensions']) # => ['.4DForm', '.4DProject', '.avsc', ...]
3232
```
3333

3434
_Note: Most type checkers will falsely warn_ `data_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`.

markup-languages/docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ pip install markup-languages
2626
```py
2727
import markup_languages
2828

29-
html_data = markup_languages['HTML']
29+
html_lang_data = markup_languages['HTML']
3030

31-
print(html_data['extensions']) # => ['.hta', '.htm', '.html', '.html.hl', ...]
31+
print(html_lang_data['extensions']) # => ['.hta', '.htm', '.html', '.html.hl', ...]
3232
```
3333

3434
_Note: Most type checkers will falsely warn_ `markup_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`.

prose-languages/docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ pip install prose-languages
2626
```py
2727
import prose_languages
2828

29-
md_data = prose_languages['Markdown']
29+
md_lang_data = prose_languages['Markdown']
3030

31-
print(md_data['extensions']) # => ['.livemd', '.markdown', '.md', ...]
31+
print(md_lang_data['extensions']) # => ['.livemd', '.markdown', '.md', ...]
3232
```
3333

3434
_Note: Most type checkers will falsely warn_ `prose_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)