8000 Simplify casts · winpython/winpython@8e1a964 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8e1a964

Browse files
authored
Simplify casts
1 parent 81d9cea commit 8e1a964

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

winpython/controlpanel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def data(self, index, role=Qt.DisplayRole):
115115
package = self.packages[index.row()]
116116
column = index.column()
117117
if role == Qt.CheckStateRole and column == CHECK:
118-
return int(to_qvariant(package in self.checked))
118+
return int(package in self.checked)
119119
elif role == Qt.DisplayRole:
120120
if column == NAME:
121121
return to_qvariant(package.name)

0 commit comments

Comments
 (0)
0