From 87e8b7afaa5d36830d3db8e6f386d81efd132faf Mon Sep 17 00:00:00 2001 From: RnDevelover Date: Wed, 13 Oct 2021 09:24:58 +0200 Subject: [PATCH] Fix TypeError: _pretty() takes 1 positional argument but 2 were given 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 --- AUTHORS.md | 1 + nltk/sem/drt.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AUTHORS.md b/AUTHORS.md index 2e45be55a8..cc1937035d 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -281,6 +281,7 @@ - Ruben Cartuyvels - Dalton Pearson - Saibo Geng +- Ahmet Yildirim ## Others whose work we've taken and included in NLTK, but who didn't directly contribute it: diff --git a/nltk/sem/drt.py b/nltk/sem/drt.py index fbd7e1e1f5..be236f02d3 100644 --- a/nltk/sem/drt.py +++ b/nltk/sem/drt.py @@ -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