LibCST/libcst/codegen
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
..
tests Remove tox references (#588) 2022-01-06 21:09:27 -05:00
__init__.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
gather.py Several trivial refactors (#770) 2022-09-14 14:33:45 +01:00
gen_matcher_classes.py Several trivial refactors (#770) 2022-09-14 14:33:45 +01:00
gen_type_mapping.py Several trivial refactors (#770) 2022-09-14 14:33:45 +01:00
gen_visitor_functions.py Several trivial refactors (#770) 2022-09-14 14:33:45 +01:00
generate.py Remove tox references (#588) 2022-01-06 21:09:27 -05:00
transforms.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00