Skip to content

Commit

Permalink
Change back from str to T to appease MyPy, will always resolve correc…
Browse files Browse the repository at this point in the history
…tly (#36445)
  • Loading branch information
vincenttran-msft authored Jul 11, 2024
1 parent 5a48f60 commit 827a5fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ def read(self, size: int = -1) -> T:
...

@overload
def read(self, *, chars: Optional[int] = None) -> str:
def read(self, *, chars: Optional[int] = None) -> T:
...

# pylint: disable-next=too-many-statements,too-many-branches
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def read(self, size: int = -1) -> T:
...

@overload
def read(self, *, chars: Optional[int] = None) -> str:
def read(self, *, chars: Optional[int] = None) -> T:
...

# pylint: disable-next=too-many-statements,too-many-branches
Expand Down

0 comments on commit 827a5fb

Please sign in to comment.