mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 21:25:13 +00:00
Allow implicit casts from literal strings to dtype
This commit is contained in:
parent
ef5a38044c
commit
694269435b
@ -174,7 +174,7 @@ public:
|
||||
m_ptr = from_args(pybind11::str(format)).release().ptr();
|
||||
}
|
||||
|
||||
explicit dtype(const char *format) : dtype(std::string(format)) { }
|
||||
dtype(const char *format) : dtype(std::string(format)) { }
|
||||
|
||||
dtype(list names, list formats, list offsets, size_t itemsize) {
|
||||
dict args;
|
||||
|
Loading…
Reference in New Issue
Block a user