Skip to content

Commit

Permalink
Add note to FileSequence.__str__ about format caveat (fixes #133)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinfx committed Apr 14, 2024
1 parent 6cc8b9a commit 7745250
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ fileseq.filesequence module
:members:
:undoc-members:
:show-inheritance:
:special-members: __getitem__, __iter__, __len__
:special-members: __str__, __getitem__, __iter__, __len__, __setstate__

fileseq.frameset module
-----------------------
Expand Down
2 changes: 1 addition & 1 deletion src/fileseq/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.0.0'
__version__ = '2.1.1'
7 changes: 7 additions & 0 deletions src/fileseq/filesequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,13 @@ def __str__(self):
"""
String representation of this :class:`FileSequence`.
Note:
A FileSequence that does not define a frame range will omit
the padding character component when string formatted, even
if the padding character is set.
For more control over the exact string format, use the
:obj:`FileSequence.format()` method.
Returns:
str:
"""
Expand Down

0 comments on commit 7745250

Please sign in to comment.