LibCST/libcst/codemod/commands
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 Bump black from 22.12.0 to 23.1.0 (#860) 2023-03-15 11:53:50 +00:00
__init__.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
add_pyre_directive.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
add_trailing_commas.py Fix the copyright heading on add_trailing_commas.py (#649) 2022-02-16 10:17:28 -08:00
convert_format_to_fstring.py Bump black from 22.12.0 to 23.1.0 (#860) 2023-03-15 11:53:50 +00:00
convert_namedtuple_to_dataclass.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
convert_percent_format_to_fstring.py Fix all type errors (#579) 2022-01-05 18:13:01 +00:00
convert_type_comments.py Fix spelling and grammar in some comments (#908) 2023-04-13 14:42:57 -07:00
ensure_import_present.py Bump black from 22.12.0 to 23.1.0 (#860) 2023-03-15 11:53:50 +00:00
fix_pyre_directives.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
noop.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
remove_pyre_directive.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
remove_unused_imports.py Restore the 0.4.1 behavior for libcst.helpers.get_absolute_module (#684) 2022-05-11 07:42:37 -04:00
rename.py Bump black from 22.12.0 to 23.1.0 (#860) 2023-03-15 11:53:50 +00:00
strip_strings_from_types.py Fix type of evaluated_value on string to allow bytes (#721) 2023-05-26 13:43:05 +01:00
unnecessary_format_string.py Bump black from 22.12.0 to 23.1.0 (#860) 2023-03-15 11:53:50 +00:00