Skip to content

Commit

Permalink
http2: remove types on self vars
Browse files Browse the repository at this point in the history
  • Loading branch information
bennn committed Jul 21, 2023
1 parent 057652a commit 4ebadfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Benchmark/http2/shallow/iri2uri.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class Iri2Uri:
]

# bg: really, Char->Char, but that's not a Python type
def encode(self: 'Iri2Uri', c: str) -> str:
def encode(self, c: str) -> str:
retval: str = c
i: int = ord(c)
for low, high in self.escape_range:
Expand All @@ -66,7 +66,7 @@ def encode(self: 'Iri2Uri', c: str) -> str:
return retval

# bg: really, url:(bytes | string)
def iri2uri(self: 'Iri2Uri', uri: str) -> str:
def iri2uri(self, uri: str) -> str:
if isinstance(uri, str):
scheme, authority, path, query, fragment = urllib.parse.urlsplit(uri)
authority = authority.encode('idna').decode('utf-8')
Expand Down

0 comments on commit 4ebadfa

Please sign in to comment.