Skip to content

Commit 445aff0

Browse files
committed
Remove unnecessary version check
1 parent 105380a commit 445aff0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

bpython/importcompletion.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,8 @@
4848
),
4949
)
5050

51-
_LOADED_INODE_DATACLASS_ARGS = {"frozen": True}
52-
if sys.version_info[:2] >= (3, 10):
53-
_LOADED_INODE_DATACLASS_ARGS["slots"] = True
5451

55-
56-
@dataclass(**_LOADED_INODE_DATACLASS_ARGS)
52+
@dataclass(frozen=True, slots=True)
5753
class _LoadedInode:
5854
dev: int
5955
inode: int

0 commit comments

Comments
 (0)