LibCST/libcst/_parser
MapleCCC 973895a6c0
Several trivial refactors (#770)
* Enumeration members are singletons. Copying on them would be no-op

* Avoid generating unnecessary `pass` statement

* Several trivial refactor

* Avoid building unnecessary intermediate lists, which are mere slight waste of time and space

* Remove unused import, an overlook from commit 8e6bf9e9

* `collections.abc.Mapping.get()` defaults to return `None` when key doesn't exist

* Just use unittest's `assertRaises` to specify expected exception types, instead of catching every possible `Exception`s, which could suppress legitimate errors and hide bugs

* We know for sure that the body of `CSTTypedTransformerFunctions` won't be empty, so don't bother with complex formal completeness
2022-09-14 14:33:45 +01:00
..
conversions Fix parse error message for number parsing (#724) 2022-08-04 11:33:26 +01:00
parso Bump black to latest to address failures in Python 3.9/3.10 (#672) 2022-04-07 11:33:18 -07:00
tests Several trivial refactors (#770) 2022-09-14 14:33:45 +01:00
types fix copyright headers and add a script to check (#635) 2022-02-01 11:13:17 +00:00
__init__.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
base_parser.py Fix all type errors (#579) 2022-01-05 18:13:01 +00:00
custom_itertools.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
detect_config.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
entrypoints.py Several trivial refactors (#770) 2022-09-14 14:33:45 +01:00
grammar.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
production_decorator.py Fix all type errors (#579) 2022-01-05 18:13:01 +00:00
py_whitespace_parser.py fix copyright headers and add a script to check (#635) 2022-02-01 11:13:17 +00:00
python_parser.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
whitespace_parser.py Fix all type errors (#579) 2022-01-05 18:13:01 +00:00
wrapped_tokenize.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00