Skip to content

Commit

Permalink
Fix TypeError: _pretty() takes 1 positional argument but 2 were given…
Browse files Browse the repository at this point in the history
… in sem/drt.py (#2854)

* Fix TypeError: _pretty() takes 1 positional argument but 2 were given in sem/drt.py

* Add as author.

Co-authored-by: Ahmet Yildirim <ahmet.yildirim@iln.uio.no>
  • Loading branch information
RnDevelover and Ahmet Yildirim committed Oct 13, 2021
1 parent 90fa546 commit 87e8b7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS.md
Expand Up @@ -281,6 +281,7 @@
- Ruben Cartuyvels <https://github.com/rubencart>
- Dalton Pearson <https://github.com/daltonpearson>
- Saibo Geng <https://github.com/Saibo-creator>
- Ahmet Yildirim <https://github.com/RnDevelover>

## Others whose work we've taken and included in NLTK, but who didn't directly contribute it:

Expand Down
2 changes: 1 addition & 1 deletion nltk/sem/drt.py
Expand Up @@ -898,7 +898,7 @@ def _pretty(self):
)
if self.consequent:
drs = DrtBinaryExpression._assemble_pretty(
drs, DrtTokens.IMP, self._pretty(self.consequent)
drs, DrtTokens.IMP, self.consequent._pretty()
)
return drs

Expand Down

0 comments on commit 87e8b7a

Please sign in to comment.