Skip to content

Commit

Permalink
Merge pull request #51 from apple1417/master
Browse files Browse the repository at this point in the history
bump to python 3.13
  • Loading branch information
apple1417 authored Oct 8, 2024
2 parents 18b3bb9 + a314b5f commit 4a9ccc7
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "git@github.com:bl-sdk/common_dotfiles.git",
"commit": "6b31480199099e9957b18918373a75d979951919",
"commit": "d03eee713ad436d20033d0598eb88f1529c56ca8",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down
2 changes: 1 addition & 1 deletion CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"binaryDir": "${sourceDir}/out/build/${presetName}",
"installDir": "${sourceDir}/out/install/${presetName}",
"cacheVariables": {
"EXPLICIT_PYTHON_VERSION": "3.12.3"
"EXPLICIT_PYTHON_VERSION": "3.13.0"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion libs/pybind11
Submodule pybind11 updated 79 files
+2 −0 .clang-tidy
+9 −1 .github/workflows/ci.yml
+30 −0 .github/workflows/emscripten.yaml
+1 −1 .github/workflows/format.yml
+6 −3 .github/workflows/pip.yml
+7 −7 .pre-commit-config.yaml
+3 −0 CMakeLists.txt
+1 −1 docs/advanced/cast/eigen.rst
+3 −3 docs/advanced/cast/stl.rst
+3 −3 docs/advanced/smart_ptrs.rst
+7 −0 docs/basics.rst
+164 −0 docs/changelog.rst
+3 −3 docs/compiling.rst
+44 −0 docs/faq.rst
+0 −4 docs/limitations.rst
+3 −3 docs/requirements.txt
+9 −2 include/pybind11/cast.h
+16 −3 include/pybind11/detail/class.h
+22 −3 include/pybind11/detail/common.h
+77 −0 include/pybind11/detail/cpp_conduit.h
+71 −0 include/pybind11/detail/exception_translation.h
+4 −2 include/pybind11/detail/init.h
+30 −13 include/pybind11/detail/internals.h
+44 −63 include/pybind11/detail/type_caster_base.h
+77 −0 include/pybind11/detail/value_and_holder.h
+2 −1 include/pybind11/eigen/matrix.h
+2 −4 include/pybind11/eigen/tensor.h
+45 −34 include/pybind11/functional.h
+10 −1 include/pybind11/gil_safe_call_once.h
+6 −2 include/pybind11/numpy.h
+7 −55 include/pybind11/pybind11.h
+2 −0 include/pybind11/pytypes.h
+16 −7 include/pybind11/stl/filesystem.h
+1 −1 include/pybind11/stl_bind.h
+5 −2 include/pybind11/typing.h
+26 −3 pybind11/__main__.py
+1 −1 pybind11/_version.py
+16 −1 tests/CMakeLists.txt
+3 −3 tests/conftest.py
+1 −1 tests/constructor_stats.h
+103 −0 tests/exo_planet_c_api.cpp
+19 −0 tests/exo_planet_pybind11.cpp
+3 −0 tests/extra_python_package/test_files.py
+13 −0 tests/home_planet_very_lonely_traveler.cpp
+8 −8 tests/local_bindings.h
+21 −0 tests/pyproject.toml
+6 −1 tests/test_async.py
+12 −0 tests/test_buffers.cpp
+7 −0 tests/test_buffers.py
+2 −0 tests/test_builtin_casters.py
+1 −1 tests/test_callbacks.cpp
+3 −0 tests/test_callbacks.py
+22 −0 tests/test_cpp_conduit.cpp
+162 −0 tests/test_cpp_conduit.py
+47 −0 tests/test_cpp_conduit_traveler_bindings.h
+25 −0 tests/test_cpp_conduit_traveler_types.h
+1 −1 tests/test_custom_type_setup.py
+2 −2 tests/test_eigen_matrix.cpp
+11 −5 tests/test_eigen_tensor.inl
+1 −1 tests/test_exceptions.py
+9 −4 tests/test_gil_scoped.py
+4 −0 tests/test_iostream.py
+6 −6 tests/test_modules.cpp
+1 −1 tests/test_numpy_array.py
+2 −0 tests/test_numpy_dtypes.cpp
+2 −2 tests/test_opaque_types.cpp
+67 −4 tests/test_pytypes.cpp
+46 −4 tests/test_pytypes.py
+2 −2 tests/test_sequences_and_iterators.cpp
+9 −6 tests/test_smart_ptr.cpp
+1 −1 tests/test_stl.cpp
+2 −1 tests/test_tagbased_polymorphic.cpp
+5 −0 tests/test_thread.py
+46 −0 tests/test_type_caster_std_function_specializations.cpp
+15 −0 tests/test_type_caster_std_function_specializations.py
+1 −1 tests/test_virtual_functions.cpp
+3 −0 tests/test_virtual_functions.py
+29 −3 tools/pybind11Common.cmake
+1 −1 tools/pybind11Config.cmake.in
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
[tool.pyright]
pythonVersion = "3.12"
pythonVersion = "3.13"
typeCheckingMode = "strict"
pythonPlatform = "Windows"

include = ["stubs"]

[tool.ruff]
target-version = "py312"
target-version = "py313"
line-length = 100

[tool.ruff.lint]
# Last time rules scrutinised: ruff 0.6.9 / 2024-10-08
select = [
"F",
"W",
Expand Down
5 changes: 2 additions & 3 deletions src/pyunrealsdk/hook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,8 @@ void register_module(py::module_& mod) {
"\n"
"To block execution, return the sentinel `Block` type, (or an instance thereof),\n"
"either by itself or as the first element of a tuple. Any other value will allow\n"
"execution continue - suggest using Ellipsis when a value's required. If there\n"
"are multiple hooks on the same function, execution is blocked if any hook\n"
"requests it.\n"
"execution continue - though generally just use None. If there are multiple hooks\n"
"on the same function, execution is blocked if any hook requests it.\n"
"\n"
"To overwrite the return value, return it as the second element of a tuple. The\n"
"the sentinel `Unset` type will prevent an override, while using Ellipsis will\n"
Expand Down
8 changes: 3 additions & 5 deletions stubs/unrealsdk/hooks/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ from __future__ import annotations

from collections.abc import Callable
from enum import EnumMeta
from types import EllipsisType
from typing import Any, ClassVar, Literal, overload

from unrealsdk.unreal import BoundFunction, UObject, WrappedStruct
Expand Down Expand Up @@ -71,7 +70,7 @@ class Unset:
return value will be used.
"""

type _HookBlockSignal = None | EllipsisType | Block | type[Block]
type _HookBlockSignal = None | Block | type[Block]
type _PreHookCallback = Callable[
[UObject, WrappedStruct, Any, BoundFunction],
_HookBlockSignal | tuple[_HookBlockSignal, Any],
Expand Down Expand Up @@ -122,9 +121,8 @@ def add_hook(
To block execution, return the sentinel `Block` type, (or an instance thereof),
either by itself or as the first element of a tuple. Any other value will allow
execution continue - suggest using Ellipsis when a value's required. If there
are multiple hooks on the same function, execution is blocked if any hook
requests it.
execution continue - though generally just use None. If there are multiple hooks
on the same function, execution is blocked if any hook requests it.
To overwrite the return value, return it as the second element of a tuple. The
the sentinel `Unset` type will prevent an override, while using Ellipsis will
Expand Down

0 comments on commit 4a9ccc7

Please sign in to comment.