From 4c66dac7d3c1ce7d6d1b3d5759ae9bbd19af578f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 27 Aug 2024 11:42:06 +0000 Subject: [PATCH] style: pre-commit fixes --- include/pybind11/detail/exception_translation.h | 1 - include/pybind11/pybind11.h | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/include/pybind11/detail/exception_translation.h b/include/pybind11/detail/exception_translation.h index 87a1aaecb3..09b246199c 100644 --- a/include/pybind11/detail/exception_translation.h +++ b/include/pybind11/detail/exception_translation.h @@ -33,7 +33,6 @@ inline bool apply_exception_translators(std::forward_list & return false; } - inline void try_translate_exceptions() { /* When an exception is caught, give each registered exception translator a chance to translate it to a Python exception. First diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index 1be865edaa..1806583e6b 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -9,9 +9,8 @@ */ #pragma once -#include "detail/exception_translation.h" - #include "detail/class.h" +#include "detail/exception_translation.h" #include "detail/init.h" #include "attr.h" #include "gil.h"