Skip to content

extras: breakpad: use io types for IO classes

typing.io doesn't seem to exist anymore.

typing.io was in Python 3.5 1 but not in 3.6 2.

Traceback (most recent call last):
  File "/builds/robUx4/vlc/./extras/breakpad/symb_upload.py", line 146, in <module>
    class OutputStore:
        def store(self, dump: typing.io.TextIO, meta):
            assert(False)
  File "/builds/robUx4/vlc/./extras/breakpad/symb_upload.py", line 147, in OutputStore
    def store(self, dump: typing.io.TextIO, meta):
                          ^^^^^^^^^
  File "/usr/lib/python3.13/typing.py", line 3817, in __getattr__
    raise AttributeError(f"module {__name__!r} has no attribute {attr!r}")
AttributeError: module 'typing' has no attribute 'io'. Did you mean: 'IO'?
  1. https://docs.python.org/3.5/library/typing.html#typing.io

  2. https://docs.python.org/3.6/library/typing.html

Merge request reports

Loading