-
Notifications
You must be signed in to change notification settings - Fork 170
Cast not changes runtype type #802
Copy link
Copy link
Open
Description
If name set as string and longname not set there is exception in this part of code TypeError: can't concat str to bytes
Line 7163 in 5972676
| name.longname = detail.encode('utf-8') + cast(bytes, name.filename) |
In CPython cast do nothing
I suggest remove union types BytesOrStr as bytes always used in input params.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels