Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeSchiff authored Jul 1, 2024
1 parent 319169e commit 7c86cf7
Show file tree
Hide file tree
Showing 4 changed files with 229 additions and 0 deletions.
59 changes: 59 additions & 0 deletions tests/good_outputs/convert.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
cdef class cheese:
"""multi line
class docstring"""
@property
def dep(self):
"""RETURNS (uint64): ID of syntactic dependency label."""
return self.c.dep

@dep.setter
def dep(self, label):
self.c.dep = label


@property
def sent_start(self):
"Deprecated: use Token.is_sent_start instead."
# Raising a deprecation warning here causes errors for autocomplete
# Handle broken backwards compatibility case: doc[0].sent_start
# was False.
if self.i == 0:
return False
else:
return self.c.sent_start

@property
def pound(self):
# this needs to move also
return self.val

@property
def test1(self):
"""multi line
docstring"""
return self.val

@property
def test2(crazy_person):
"""
multi line docstring.
not using self
"""
return crazy_person.val

@property
def split(self):
"docstring for split"
return self.val


cdef class spam:
@property
def url_match(self):
pass
@url_match.setter
def url_match(self, url_match):
self._url_match = url_match
self._reload_special_cases()


56 changes: 56 additions & 0 deletions tests/good_outputs/cython.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
cdef class cheese:
"""multi line
class docstring"""
@property
def dep(self):
"""RETURNS (uint64): ID of syntactic dependency label."""
return self.c.dep

@dep.setter
def dep(self, label):
self.c.dep = label


@property
def sent_start(self):
"Deprecated: use Token.is_sent_start instead."
# Raising a deprecation warning here causes errors for autocomplete
# Handle broken backwards compatibility case: doc[0].sent_start
# was False.
if self.i == 0:
return False
else:
return self.c.sent_start

@property
def pound(self):
# this needs to move also
return self.val

@property
def test1(self):
"""multi line
docstring"""
return self.val

@property
def test2(crazy_person):
"""
multi line docstring.
not using self
"""
return crazy_person.val

@property
def split(self):
"docstring for split"
return self.val


cdef class spam:
property url_match:
def __set__(self, url_match):
self._url_match = url_match
self._reload_special_cases()


58 changes: 58 additions & 0 deletions tests/good_outputs/pure_python.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
@cython.cclass
class cheese:
"""multi line
class docstring"""
@property
def dep(self):
"""RETURNS (uint64): ID of syntactic dependency label."""
return self.c.dep

@dep.setter
def dep(self, label):
self.c.dep = label


@property
def sent_start(self):
"Deprecated: use Token.is_sent_start instead."
# Raising a deprecation warning here causes errors for autocomplete
# Handle broken backwards compatibility case: doc[0].sent_start
# was False.
if self.i == 0:
return False
else:
return self.c.sent_start

@property
def pound(self):
# this needs to move also
return self.val

@property
def test1(self):
"""multi line
docstring"""
return self.val

@property
def test2(crazy_person):
"""
multi line docstring.
not using self
"""
return crazy_person.val

@property
def split(self):
"docstring for split"
return self.val


@cython.cclass
class spam:
property url_match:
def __set__(self, url_match):
self._url_match = url_match
self._reload_special_cases()


56 changes: 56 additions & 0 deletions tests/good_outputs/skip.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
cdef class cheese:
"""multi line
class docstring"""
@property
def dep(self):
"""RETURNS (uint64): ID of syntactic dependency label."""
return self.c.dep

@dep.setter
def dep(self, label):
self.c.dep = label


@property
def sent_start(self):
"Deprecated: use Token.is_sent_start instead."
# Raising a deprecation warning here causes errors for autocomplete
# Handle broken backwards compatibility case: doc[0].sent_start
# was False.
if self.i == 0:
return False
else:
return self.c.sent_start

@property
def pound(self):
# this needs to move also
return self.val

@property
def test1(self):
"""multi line
docstring"""
return self.val

@property
def test2(crazy_person):
"""
multi line docstring.
not using self
"""
return crazy_person.val

@property
def split(self):
"docstring for split"
return self.val


cdef class spam:
property url_match:
def __set__(self, url_match):
self._url_match = url_match
self._reload_special_cases()


0 comments on commit 7c86cf7

Please sign in to comment.