diff --git a/NEWS.md b/NEWS.md index d21dc151..448888cb 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,12 @@ +5.0.12 2021-09-11 +================= + +* Add Python version 3.9.7 +* Document unmarshal beter +* Correct stack information for IMPORT_NAME +* Fix bug in code type handling where bytes were showing up as strings +* More type annotations in master branch. Create more older variations without annotations + 5.0.11 2021-07-05 ================ diff --git a/xdis/unmarshal.py b/xdis/unmarshal.py index 2c3e5695..9994b352 100644 --- a/xdis/unmarshal.py +++ b/xdis/unmarshal.py @@ -95,7 +95,7 @@ def long(n): } -def compat_str(s): +def compat_str(s: str) -> str: """ This handles working with strings between Python2 and Python3. """ @@ -300,7 +300,7 @@ def t_binary_complex(self, save_ref, bytes_for_s=False): return self.r_ref(complex(real, imag), save_ref) # Note: could mean bytes in Python3 processing Python2 bytecode - def t_string(self, save_ref, bytes_for_s): + def t_string(self, save_ref, bytes_for_s: bool): """ In Python3 this is a bytes types. In Python2 it is a string. `bytes_for_s` distinguishes what we need. diff --git a/xdis/version.py b/xdis/version.py index e81c377b..856cb4d8 100644 --- a/xdis/version.py +++ b/xdis/version.py @@ -4,4 +4,4 @@ # well as importing into Python. That's why there is no # space around "=" below. # fmt: off -__version__="5.0.11" # noqa +__version__="5.0.12" # noqa