Skip to content

Commit

Permalink
got it
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy C committed Dec 20, 2024
1 parent da9da09 commit 5db1917
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions vendor/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
except ImportError:
import collections as collections_abc # Fallback for PY3.2.

# MINIMAL OILS PATCH - stub out 'unicode' type, because the legacy OVM build
# doesn't have it, and it is hard to undo the build hacks.
# Should be type(u''), but type('') runs under OVM, and doesn't appear to break
# type checking.
unicode = type('')

# Please keep __all__ alphabetized within each category.
__all__ = [
Expand Down Expand Up @@ -2494,8 +2499,7 @@ def __enter__(self):
pass


# OILS PATCH: 'unicode' not available
class TextIO(IO['unicode']):
class TextIO(IO[unicode]):
"""Typed version of the return of open() in text mode."""

__slots__ = ()
Expand Down

0 comments on commit 5db1917

Please sign in to comment.