Commit 74657f01 authored by Stefan Behnel's avatar Stefan Behnel

minor cleanup

parent 5b19736e
...@@ -1033,9 +1033,6 @@ class PyExtensionType(PyObjectType): ...@@ -1033,9 +1033,6 @@ class PyExtensionType(PyObjectType):
is_extension_type = 1 is_extension_type = 1
has_attributes = 1 has_attributes = 1
def needs_nonecheck(self):
return True
objtypedef_cname = None objtypedef_cname = None
def __init__(self, name, typedef_flag, base_type, is_external=0): def __init__(self, name, typedef_flag, base_type, is_external=0):
...@@ -1060,6 +1057,9 @@ class PyExtensionType(PyObjectType): ...@@ -1060,6 +1057,9 @@ class PyExtensionType(PyObjectType):
if scope: if scope:
scope.parent_type = self scope.parent_type = self
def needs_nonecheck(self):
return True
def subtype_of_resolved_type(self, other_type): def subtype_of_resolved_type(self, other_type):
if other_type.is_extension_type or other_type.is_builtin_type: if other_type.is_extension_type or other_type.is_builtin_type:
return self is other_type or ( return self is other_type or (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment