From 2d296cf1d2855455e822d1dac56c1a5d7e9cd570 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Mon, 14 Oct 2019 22:22:08 +0200 Subject: [PATCH] Feat: allowing to import Decimal --- mapytex/__init__.py | 2 +- mapytex/calculus/API/__init__.py | 2 +- mapytex/calculus/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mapytex/__init__.py b/mapytex/__init__.py index a6f7f80..326dfc5 100644 --- a/mapytex/__init__.py +++ b/mapytex/__init__.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # encoding: utf-8 -from .calculus import Expression, Integer # , Polynom, Fraction, random_str, txt, Equation +from .calculus import Expression, Integer, Decimal # Expression.set_render('tex') diff --git a/mapytex/calculus/API/__init__.py b/mapytex/calculus/API/__init__.py index 9e6153f..bc39654 100644 --- a/mapytex/calculus/API/__init__.py +++ b/mapytex/calculus/API/__init__.py @@ -110,7 +110,7 @@ x^7 """ from .expression import Expression -from .tokens.number import Integer +from .tokens.number import Integer, Decimal if __name__ == "__main__": e = Expression.from_str("1+2/3/4/5") diff --git a/mapytex/calculus/__init__.py b/mapytex/calculus/__init__.py index 81f27ad..84fc9e8 100644 --- a/mapytex/calculus/__init__.py +++ b/mapytex/calculus/__init__.py @@ -30,7 +30,7 @@ Expression is the classe wich handle all calculus. It can randomly generate or i """ -from .API import Expression, Integer +from .API import Expression, Integer, Decimal __all__ = ["Expression"]