Skip to content

Commit

Permalink
Removed union pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
VForiel committed Feb 9, 2023
1 parent 95d8f79 commit 0a3b8f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "LRFutils"
version = "0.1.1"
version = "0.1.2"
authors = [
{ name="Leirof", email="[email protected]" },
]
Expand Down
3 changes: 2 additions & 1 deletion src/LRFutils/progress.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from . import color
from time import time
import datetime
from typing import Union

class Bar():

Expand All @@ -9,7 +10,7 @@ class Bar():
# ________________________________________________________________________________
# Create a progress bar

def __init__(self, max:float|int = 1, width:int = 80, prefix:str = "", eta:bool = True, decimals:int = 0, show_duration:bool = True, average_ETA:int = 10):
def __init__(self, max:Union[float,int] = 1, width:int = 80, prefix:str = "", eta:bool = True, decimals:int = 0, show_duration:bool = True, average_ETA:int = 10):
self.max = max
self.width = width if isinstance(width,int) else 80
self.prefix = prefix
Expand Down

0 comments on commit 0a3b8f5

Please sign in to comment.