Skip to content

Commit 7087a74

Browse files
committed
Revert "Appease new flake8 B028 error:"
This reverts commit 44c2d89.
1 parent 44c2d89 commit 7087a74

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pybind11/setup_helpers.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,7 @@ def cxx_std(self) -> int:
174174
@cxx_std.setter
175175
def cxx_std(self, level: int) -> None:
176176
if self._cxx_level:
177-
warnings.warn(
178-
"You cannot safely change the cxx_level after setting it!", stacklevel=1
179-
)
177+
warnings.warn("You cannot safely change the cxx_level after setting it!")
180178

181179
# MSVC 2015 Update 3 and later only have 14 (and later 17) modes, so
182180
# force a valid flag here.

0 commit comments

Comments
 (0)