From 0ef10eae8b0af615eabf2463bdc687d75ec477fc Mon Sep 17 00:00:00 2001 From: Jorrit Wronski Date: Wed, 27 Apr 2016 12:23:44 +0200 Subject: [PATCH] Circumvent Cython issues from #1039, not sure this is a fix --- wrappers/Python/CoolProp/AbstractState.pxd | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/wrappers/Python/CoolProp/AbstractState.pxd b/wrappers/Python/CoolProp/AbstractState.pxd index 38084e70..16a2dbed 100644 --- a/wrappers/Python/CoolProp/AbstractState.pxd +++ b/wrappers/Python/CoolProp/AbstractState.pxd @@ -7,15 +7,24 @@ cimport cAbstractState from typedefs cimport * cimport constants_header -ctypedef fused string_t: +#ctypedef fused string_t: +# cython.p_char +# bytes +# unicode +# string +# +#ctypedef fused string_or_size_t: +# string_t +# cython.integral + +ctypedef fused string_or_size_t: cython.p_char bytes unicode string - -ctypedef fused string_or_size_t: - string_t - cython.integral + short + int + long cdef class PyPhaseEnvelopeData: cpdef public bool TypeI