Skip to content

Commit 1f26389

Browse files
Apply ruff/Pylint rule PLR6201
PLR6201 Use a set literal when testing for membership
1 parent 4040091 commit 1f26389

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
if vi < (3, 8):
55
raise RuntimeError('uvloop requires Python 3.8 or greater')
66

7-
if sys.platform in ('win32', 'cygwin', 'cli'):
7+
if sys.platform in {'win32', 'cygwin', 'cli'}:
88
raise RuntimeError('uvloop does not support Windows at the moment')
99

1010
import os

tests/test_tcp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def eof_received(self):
4545
self.state = 'EOF'
4646

4747
def connection_lost(self, exc):
48-
assert self.state in ('CONNECTED', 'EOF'), self.state
48+
assert self.state in {'CONNECTED', 'EOF'}, self.state
4949
self.state = 'CLOSED'
5050
if self.done:
5151
self.done.set_result(None)

0 commit comments

Comments
 (0)