Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce FileSize class #741

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Introduce FileSize class #741

wants to merge 2 commits into from

Conversation

ggediminass
Copy link
Contributor

No description provided.

Initialize the FileSize object.

Args:
size (int, optional): The initial size of the file in KB. Default is 1 KB.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why need default of 1kb? Why not 0?

DEFAULT_FILE_SIZE = 1
MAX_FILE_SIZE = 1024
DEFAULT_FILE_SIZE: FileSize = FileSize(1)
MAX_FILE_SIZE: FileSize = FileSize()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be easier to use if you have the from_x function as class functions and then to use FileSize.from_mb(1024) and this returns an FileSize object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants