mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-19 17:32:37 +00:00
Revert "Appease new flake8 B028 error:"
This reverts commit 44c2d89c47
.
This commit is contained in:
parent
44c2d89c47
commit
7087a74add
@ -174,9 +174,7 @@ class Pybind11Extension(_Extension): # type: ignore[misc]
|
|||||||
@cxx_std.setter
|
@cxx_std.setter
|
||||||
def cxx_std(self, level: int) -> None:
|
def cxx_std(self, level: int) -> None:
|
||||||
if self._cxx_level:
|
if self._cxx_level:
|
||||||
warnings.warn(
|
warnings.warn("You cannot safely change the cxx_level after setting it!")
|
||||||
"You cannot safely change the cxx_level after setting it!", stacklevel=1
|
|
||||||
)
|
|
||||||
|
|
||||||
# MSVC 2015 Update 3 and later only have 14 (and later 17) modes, so
|
# MSVC 2015 Update 3 and later only have 14 (and later 17) modes, so
|
||||||
# force a valid flag here.
|
# force a valid flag here.
|
||||||
|
Loading…
Reference in New Issue
Block a user