Skip to content

Commit 88c48f4

Browse files
committed
Reorder/delete some headers and imports.
1 parent ecf7cfc commit 88c48f4

4 files changed

Lines changed: 5 additions & 9 deletions

File tree

dynd/include/types/type_functions.hpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313
#include <dynd/string_encodings.hpp>
1414
#include <dynd/type.hpp>
1515

16-
#include "type_conversions.hpp"
17-
#include "numpy_interop.hpp"
18-
#include "visibility.hpp"
19-
20-
#include <dynd/shape_tools.hpp>
2116
#include <dynd/types/bytes_type.hpp>
2217
#include <dynd/types/fixed_dim_type.hpp>
2318
#include <dynd/types/fixed_string_type.hpp>
@@ -26,6 +21,9 @@
2621
#include <dynd/types/type_type.hpp>
2722

2823
#include "utility_functions.hpp"
24+
#include "type_conversions.hpp"
25+
#include "visibility.hpp"
26+
2927

3028
// Python's datetime C API
3129
#include "datetime.h"

dynd/include/types/type_unpack.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77

88
#include <Python.h>
99

10-
#include <dynd/type_registry.hpp>
1110
#include <type_traits>
1211

12+
#include <dynd/type_registry.hpp>
13+
1314
#include "pyobject_type.hpp"
1415

1516
using namespace dynd;

dynd/ndt/type.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ cdef extern from 'types/type_functions.hpp' namespace 'pydynd':
7676
cdef extern from "types/type_unpack.hpp":
7777
object from_type_property(const pair[_type, const char *] &) except +translate_exception
7878

79-
import numpy as _np
8079

8180
builtin_tuple = tuple
8281

dynd/src/types/type_deduction.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@
1515
#include <dynd/types/type_type.hpp>
1616
#include <dynd/types/var_dim_type.hpp>
1717

18-
#include "numpy_interop.hpp"
1918
#include "types/type_functions.hpp"
2019
#include "types/type_deduction.hpp"
21-
//#include "utility_functions.hpp"
2220

2321
using namespace std;
2422
using namespace dynd;

0 commit comments

Comments
 (0)