Importing typing.BinaryIO and casting in to open writer object, as @Youth Dream proposed does not work - pyCharm reports issue with BinaryIO as well.
This seems to be known pyCharm issue thugh:
"Expected type 'SupportsWrite[bytes]', got 'BinaryIO' instead"