From 356723eadccc2772f0d9ab973a5100a9895bc4fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C4=8Cervenka?= Date: Wed, 6 Nov 2024 13:37:26 +0100 Subject: [PATCH] fix trailing comma (#86) --- pyproject.toml | 2 +- src/epstats/toolkit/parser.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 38231f0..19ca5ce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool] [tool.poetry] name = "ep-stats" -version = "2.5.1" +version = "2.5.2" homepage = "https://github.com/avast/ep-stats" description = "Statistical package to evaluate ab tests in experimentation platform." authors = [ diff --git a/src/epstats/toolkit/parser.py b/src/epstats/toolkit/parser.py index 3daf659..c8364e1 100644 --- a/src/epstats/toolkit/parser.py +++ b/src/epstats/toolkit/parser.py @@ -32,7 +32,7 @@ def __init__(self, nominator: str, denominator: str): dimension_value_chars = alphanums + "_" + "-" + "." + "%" + " " + "/" + "|" dimension_operator = oneOf("< = > <= >= =^ !=") dimension_value = (dimension_operator + Word(dimension_value_chars)).setParseAction(DimensionValue) - dimension_list = delimitedList(dimension + dimension_value) + dimension_list = delimitedList(dimension + dimension_value, allow_trailing_delim=True) ep_goal = (func + "(" + unit_type + "." + agg_type + "." + goal + ")").setParseAction(EpGoal) ep_goal_with_dimensions = (