LibCST/libcst
Sigurd Ljødal a594fe1dd2
Fix type of evaluated_value on string to allow bytes (#721)
* Fix type of evaluated_value on string

This can return bytes if the string is a bytestring, e.g.:

    In [1]: import libcst as cst

    In [2]: cst.parse_expression('b"foo"').evaluated_value
    Out[2]: b'foo'

* Fix type errors from changed signature
2023-05-26 13:43:05 +01:00
..
_nodes Fix type of evaluated_value on string to allow bytes (#721) 2023-05-26 13:43:05 +01:00
_parser Switch default parser implementation to native (#929) 2023-05-25 18:24:59 +01:00
codegen Fix type of evaluated_value on string to allow bytes (#721) 2023-05-26 13:43:05 +01:00
codemod Fix type of evaluated_value on string to allow bytes (#721) 2023-05-26 13:43:05 +01:00
helpers Fix: relative imports from '' package are not allowed (#894) 2023-03-14 15:07:40 -07:00
matchers relax validation rules on decorators (#926) 2023-05-23 09:56:49 +01:00
metadata Bump black from 22.12.0 to 23.1.0 (#860) 2023-03-15 11:53:50 +00:00
testing Bump black from 22.12.0 to 23.1.0 (#860) 2023-03-15 11:53:50 +00:00
tests PEP 621 + hatch to run tests/lint/etc 2023-03-14 19:37:41 -07:00
__init__.py Implement PEP-634 - Match statement (#568) 2021-12-30 10:00:51 +00:00
_add_slots.py add slots to base classes, @add_slots takes bases into account (#605) 2022-01-16 14:14:32 +00:00
_batched_visitor.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
_exceptions.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
_flatten_sentinel.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
_maybe_sentinel.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
_metadata_dependent.py Implement lazy loading mechanism for QualifiedNameProvider (#720) 2022-07-09 08:34:29 +01:00
_position.py Fix all type errors (#579) 2022-01-05 18:13:01 +00:00
_removal_sentinel.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
_tabs.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
_type_enforce.py Drop support for running libcst using a python 3.6 interpreter (#663) 2022-03-24 11:31:48 -04:00
_typed_visitor.py Several trivial refactors (#770) 2022-09-14 14:33:45 +01:00
_typed_visitor_base.py Several trivial refactors (#770) 2022-09-14 14:33:45 +01:00
_types.py Pass root path to FullyQualifiedNameProvider (#867) 2023-02-22 14:36:10 -08:00
_visitors.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
py.typed support mypy using py.typed 2019-09-16 13:49:08 -07:00
tool.py Allow running codemods without configuring in YAML (#879) 2023-03-27 10:59:48 +01:00