• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

LeanderCS / flask-inputfilter / #73

18 Jan 2025 10:58PM UTC coverage: 98.065% (-1.0%) from 99.052%
#73

push

coveralls-python

LeanderCS
15 | Add caching to workflow

1216 of 1240 relevant lines covered (98.06%)

0.98 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

88.89
/flask_inputfilter/Filter/ArrayExplodeFilter.py
1
from typing import Any, List, Union
1✔
2

3
from .BaseFilter import BaseFilter
1✔
4

5

6
class ArrayExplodeFilter(BaseFilter):
1✔
7
    """
8
    Filter that splits a string into an array based on a specified delimiter.
9
    """
10

11
    def __init__(self, delimiter: str = ",") -> None:
1✔
12
        self.delimiter = delimiter
1✔
13

14
    def apply(self, value: Any) -> Union[List[str], Any]:
1✔
15
        if not isinstance(value, str):
1✔
16
            return value
×
17

18
        return value.split(self.delimiter)
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc