Skip to content

Commit fe29f12

Browse files
authored
Merge pull request #486 from j-t-1/Union
Use the | operator instead of Union
2 parents 107d313 + 9ac12ab commit fe29f12

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pefile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
import uuid
3434
from collections import Counter, defaultdict
3535
from hashlib import md5, sha1, sha256, sha512
36-
from typing import Union
3736

3837
import ordlookup
3938

@@ -2307,7 +2306,7 @@ def is_valid_dos_filename(s):
23072306

23082307
@lru_cache(maxsize=2048)
23092308
def is_valid_function_name(
2310-
s: Union[str, bytes, bytearray], relax_allowed_characters: bool = False
2309+
s: str | bytes | bytearray, relax_allowed_characters: bool = False
23112310
) -> bool:
23122311
allowed_extra = b"._?@$()<>"
23132312
if relax_allowed_characters:

0 commit comments

Comments
 (0)