Skip to content

Commit 761535a

Browse files
Merge pull request #4 from ikegami-yukino/v0.2.1
Bump version 0.2.1
2 parents 003f4e2 + fb8c92b commit 761535a

File tree

5 files changed

+27
-5
lines changed

5 files changed

+27
-5
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,9 @@ venv.bak/
102102

103103
# mypy
104104
.mypy_cache/
105+
106+
# uv
107+
uv.lock
108+
109+
# pyproject.toml
110+
pyproject.toml

CHANGES.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
CHANGES
22
=======
33

4+
0.2.1 (2025-08-15)
5+
------------------
6+
- Add `flatten_non_str` function that alias of `flatten(iterable, ignore=str)`
7+
48
0.2.0 (2025-08-02)
59
------------------
610

README.rst

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
flati
22
==========
3-
|pyversion| |version| |license|
3+
4+
|pyversion| |version| |license| |download| |nowarnonukes|
45

56
Flatten nested iterable object (Pure-Python implementation)
67

@@ -25,7 +26,7 @@ Usage
2526
list(flati.flatten(iterable))
2627
# => [1, 2, 3, 4, 5, 6]
2728
28-
# flati.flatten() returns a generator
29+
# The flati.flatten function returns a generator
2930
import types
3031
isinstance(flati.flatten(iterable), types.GeneratorType)
3132
# => True
@@ -56,6 +57,8 @@ See https://github.com/ikegami-yukino/flati/blob/master/CONTRIBUTING.md
5657

5758

5859
.. |pyversion| image:: https://img.shields.io/pypi/pyversions/flati.svg
60+
:target: http://pypi.python.org/pypi/flati/
61+
:alt: Python version
5962

6063
.. |version| image:: https://img.shields.io/pypi/v/flati.svg
6164
:target: http://pypi.python.org/pypi/flati/
@@ -64,3 +67,10 @@ See https://github.com/ikegami-yukino/flati/blob/master/CONTRIBUTING.md
6467
.. |license| image:: https://img.shields.io/pypi/l/flati.svg
6568
:target: http://pypi.python.org/pypi/flati/
6669
:alt: license
70+
71+
.. |download| image:: https://static.pepy.tech/personalized-badge/flati?period=total&units=international_system&left_color=black&right_color=blue&left_text=Downloads
72+
:target: https://pepy.tech/project/flati
73+
:alt: download
74+
75+
.. |nowarnonukes| image:: https://img.shields.io/badge/NO%20WAR-NO%20NUKES-brightgreen
76+
:alt: NO WAR

flati/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
from . import py3
2727
flatten = py3.flatten
2828

29-
VERSION = (0, 2, 0)
30-
__version__ = '0.2.0'
3129

3230
def flatten_non_str(iterable, ignore=None):
3331
"""Flatten nested iterable object, ignoring strings.
@@ -61,4 +59,8 @@ def flatten_non_str(iterable, ignore=None):
6159
ignore = ignore_types + (str,)
6260
yield from flatten(iterable, ignore=ignore)
6361

62+
63+
VERSION = (0, 2, 1)
64+
__version__ = '0.2.1'
6465
__license__ = 'MIT License'
66+
__all__ = ['flatten', '__version__', '__license__', 'flatten_non_str']

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
url='https://github.com/ikegami-yukino/flati',
2222
keywords=['flatten', 'generator', 'pure-python'],
2323
classifiers=[
24-
'Development Status :: 3 - Alpha',
24+
'Development Status :: 4 - Beta',
2525
'Intended Audience :: Developers',
2626
'Intended Audience :: Information Technology',
2727
'License :: OSI Approved :: MIT License',

0 commit comments

Comments
 (0)