[PR #524] [CLOSED] Add py::module_local() to pybind11::class #610

Closed
opened 2026-10-27 21:04:30 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/deepseek-ai/DeepEP/pull/524
Author: @ooooo-create
Created: 12/18/2025
Status: ❌ Closed

Base: main ← Head: use_py_module_local


📝 Commits (1)

  • aa95682 Add py::module_local() to pybind11::class to avoid conflicts with other pybind modules sharing the same class name

📊 Changes

1 file changed (+3 additions, -3 deletions)

View changed files

📝 csrc/deep_ep.cpp (+3 -3)

📄 Description

Add py::module_local() to pybind11::class to avoid conflicts with other pybind modules sharing the same class name.
It will raise generic_type: type "xxx" is already registered!


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/deepseek-ai/DeepEP/pull/524 **Author:** [@ooooo-create](https://github.com/ooooo-create) **Created:** 12/18/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `use_py_module_local` --- ### 📝 Commits (1) - [`aa95682`](https://github.com/deepseek-ai/DeepEP/commit/aa95682c0e7c4b9f663836aae0697276edb3af51) Add py::module_local() to pybind11::class to avoid conflicts with other pybind modules sharing the same class name ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `csrc/deep_ep.cpp` (+3 -3) </details> ### 📄 Description Add `py::module_local()` to `pybind11::class` to avoid conflicts with other pybind modules sharing the same class name. It will raise `generic_type: type "xxx" is already registered!` - inference: https://stackoverflow.com/questions/76072215/pybind11-generic-type-type-is-already-registered-when-importing-two-modul --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-27 21:04:30 +00:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/DeepEP#610
No description provided.