Fix a few typos found by codespell (#11404)

## Summary

Just fix typos.

## Test Plan

CI jobs.

---------

Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
This commit is contained in:
Dimitri Papadopoulos Orfanos 2024-05-13 15:22:35 +02:00 committed by GitHub
parent 6ecb4776de
commit 3b0584449d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 71 additions and 71 deletions

View file

@ -287,7 +287,7 @@ RUF100_0.py:93:92: RUF100 [*] Unused `noqa` directive (unused: `F401`)
RUF100_0.py:107:12: RUF100 [*] Unused `noqa` directive (unknown: `E50`)
|
105 | def f():
106 | # Invalid - nonexistant error code with multibyte character
106 | # Invalid - nonexistent error code with multibyte character
107 | d = 1 # …noqa: F841, E50
| ^^^^^^^^^^^^^^^^^ RUF100
108 | e = 1 # …noqa: E50
@ -297,7 +297,7 @@ RUF100_0.py:107:12: RUF100 [*] Unused `noqa` directive (unknown: `E50`)
Safe fix
104 104 |
105 105 | def f():
106 106 | # Invalid - nonexistant error code with multibyte character
106 106 | # Invalid - nonexistent error code with multibyte character
107 |- d = 1 # …noqa: F841, E50
107 |+ d = 1 # noqa: F841
108 108 | e = 1 # …noqa: E50
@ -306,7 +306,7 @@ RUF100_0.py:107:12: RUF100 [*] Unused `noqa` directive (unknown: `E50`)
RUF100_0.py:108:5: F841 [*] Local variable `e` is assigned to but never used
|
106 | # Invalid - nonexistant error code with multibyte character
106 | # Invalid - nonexistent error code with multibyte character
107 | d = 1 # …noqa: F841, E50
108 | e = 1 # …noqa: E50
| ^ F841
@ -315,7 +315,7 @@ RUF100_0.py:108:5: F841 [*] Local variable `e` is assigned to but never used
Unsafe fix
105 105 | def f():
106 106 | # Invalid - nonexistant error code with multibyte character
106 106 | # Invalid - nonexistent error code with multibyte character
107 107 | d = 1 # …noqa: F841, E50
108 |- e = 1 # …noqa: E50
109 108 |
@ -324,7 +324,7 @@ RUF100_0.py:108:5: F841 [*] Local variable `e` is assigned to but never used
RUF100_0.py:108:12: RUF100 [*] Unused `noqa` directive (unknown: `E50`)
|
106 | # Invalid - nonexistant error code with multibyte character
106 | # Invalid - nonexistent error code with multibyte character
107 | d = 1 # …noqa: F841, E50
108 | e = 1 # …noqa: E50
| ^^^^^^^^^^^ RUF100
@ -333,7 +333,7 @@ RUF100_0.py:108:12: RUF100 [*] Unused `noqa` directive (unknown: `E50`)
Safe fix
105 105 | def f():
106 106 | # Invalid - nonexistant error code with multibyte character
106 106 | # Invalid - nonexistent error code with multibyte character
107 107 | d = 1 # …noqa: F841, E50
108 |- e = 1 # …noqa: E50
108 |+ e = 1

View file

@ -267,7 +267,7 @@ RUF100_0.py:93:92: RUF100 [*] Unused `noqa` directive (unused: `F401`)
RUF100_0.py:107:12: RUF100 [*] Unused `noqa` directive (unknown: `E50`)
|
105 | def f():
106 | # Invalid - nonexistant error code with multibyte character
106 | # Invalid - nonexistent error code with multibyte character
107 | d = 1 # …noqa: F841, E50
| ^^^^^^^^^^^^^^^^^ RUF100
108 | e = 1 # …noqa: E50
@ -277,7 +277,7 @@ RUF100_0.py:107:12: RUF100 [*] Unused `noqa` directive (unknown: `E50`)
Safe fix
104 104 |
105 105 | def f():
106 106 | # Invalid - nonexistant error code with multibyte character
106 106 | # Invalid - nonexistent error code with multibyte character
107 |- d = 1 # …noqa: F841, E50
107 |+ d = 1 # noqa: F841
108 108 | e = 1 # …noqa: E50
@ -286,7 +286,7 @@ RUF100_0.py:107:12: RUF100 [*] Unused `noqa` directive (unknown: `E50`)
RUF100_0.py:108:5: F841 [*] Local variable `e` is assigned to but never used
|
106 | # Invalid - nonexistant error code with multibyte character
106 | # Invalid - nonexistent error code with multibyte character
107 | d = 1 # …noqa: F841, E50
108 | e = 1 # …noqa: E50
| ^ F841
@ -295,7 +295,7 @@ RUF100_0.py:108:5: F841 [*] Local variable `e` is assigned to but never used
Unsafe fix
105 105 | def f():
106 106 | # Invalid - nonexistant error code with multibyte character
106 106 | # Invalid - nonexistent error code with multibyte character
107 107 | d = 1 # …noqa: F841, E50
108 |- e = 1 # …noqa: E50
109 108 |
@ -304,7 +304,7 @@ RUF100_0.py:108:5: F841 [*] Local variable `e` is assigned to but never used
RUF100_0.py:108:12: RUF100 [*] Unused `noqa` directive (unknown: `E50`)
|
106 | # Invalid - nonexistant error code with multibyte character
106 | # Invalid - nonexistent error code with multibyte character
107 | d = 1 # …noqa: F841, E50
108 | e = 1 # …noqa: E50
| ^^^^^^^^^^^ RUF100
@ -313,7 +313,7 @@ RUF100_0.py:108:12: RUF100 [*] Unused `noqa` directive (unknown: `E50`)
Safe fix
105 105 | def f():
106 106 | # Invalid - nonexistant error code with multibyte character
106 106 | # Invalid - nonexistent error code with multibyte character
107 107 | d = 1 # …noqa: F841, E50
108 |- e = 1 # …noqa: E50
108 |+ e = 1