mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-28 13:52:46 +00:00
style: pre-commit fixes
This commit is contained in:
parent
b318d0220c
commit
a53bf0efc8
@ -1109,6 +1109,7 @@ def get_annotations_helper(o):
|
||||
return o.__dict__.get("__annotations__", {})
|
||||
return getattr(o, "__annotations__", {})
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
not m.defined_PYBIND11_CPP17,
|
||||
reason="C++17 Position Independent Code not available",
|
||||
@ -1119,6 +1120,7 @@ def test_module_attribute_types() -> None:
|
||||
assert module_annotations["list_int"] == "list[int]"
|
||||
assert module_annotations["set_str"] == "set[str]"
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
not m.defined_PYBIND11_CPP17,
|
||||
reason="C++17 Position Independent Code not available",
|
||||
@ -1131,6 +1133,7 @@ def test_class_attribute_types() -> None:
|
||||
assert annotations["x"] == "float"
|
||||
assert annotations["dict_str_int"] == "dict[str, int]"
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
not m.defined_PYBIND11_CPP17,
|
||||
reason="C++17 Position Independent Code not available",
|
||||
|
Loading…
Reference in New Issue
Block a user