LibCST/libcst/codemod/visitors
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
..
tests Support PEP 604 in ApplyTypeAnnotationsVisitor (#868) 2023-04-21 13:38:19 +01:00
__init__.py Define gather global names visitor (#657) 2022-03-09 10:53:44 -08:00
_add_imports.py Bump black from 22.12.0 to 23.1.0 (#860) 2023-03-15 11:53:50 +00:00
_apply_type_annotations.py Support PEP 604 in ApplyTypeAnnotationsVisitor (#868) 2023-04-21 13:38:19 +01:00
_gather_comments.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
_gather_exports.py Fix type of evaluated_value on string to allow bytes (#721) 2023-05-26 13:43:05 +01:00
_gather_global_names.py Define gather global names visitor (#657) 2022-03-09 10:53:44 -08:00
_gather_imports.py Restore the 0.4.1 behavior for libcst.helpers.get_absolute_module (#684) 2022-05-11 07:42:37 -04:00
_gather_string_annotation_names.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
_gather_unused_imports.py Bump black from 22.12.0 to 23.1.0 (#860) 2023-03-15 11:53:50 +00:00
_imports.py Restore the 0.4.1 behavior for libcst.helpers.get_absolute_module (#684) 2022-05-11 07:42:37 -04:00
_remove_imports.py Restore the 0.4.1 behavior for libcst.helpers.get_absolute_module (#684) 2022-05-11 07:42:37 -04:00