@@ -1012,9 +1012,8 @@ async def create_message(
10121012 embed = content
10131013 content = undefined .UNDEFINED
10141014
1015- # os.PathLike is missing @runtime_checkable causing mypy to complain
10161015 elif undefined .count (attachment , attachments ) == 2 and isinstance (
1017- content , (files .Resource , files .RAWISH_TYPES , os .PathLike ) # type: ignore[misc]
1016+ content , (files .Resource , files .RAWISH_TYPES , os .PathLike )
10181017 ):
10191018 # Syntatic sugar, common mistake to accidentally send an attachment
10201019 # as the content, so lets detect this and fix it for the user. This
@@ -1414,9 +1413,8 @@ async def execute_webhook(
14141413 embed = content
14151414 content = undefined .UNDEFINED
14161415
1417- # os.PathLike is missing @runtime_checkable causing mypy to complain
14181416 elif undefined .count (attachment , attachments ) == 2 and isinstance (
1419- content , (files .Resource , files .RAWISH_TYPES , os .PathLike ) # type: ignore[misc]
1417+ content , (files .Resource , files .RAWISH_TYPES , os .PathLike )
14201418 ):
14211419 # Syntatic sugar, common mistake to accidentally send an attachment
14221420 # as the content, so lets detect this and fix it for the user. This
0 commit comments