Skip to content

Conversation

@Speedy1991
Copy link

This will fix #60

I also added the .idea to gitignore

@Speedy1991
Copy link
Author

Btw. I think there is a lot of dead code? The Url class is never used, nor the classmethods

Comment on lines +27 to +29
has_width = bool(width)
height = options.get("height", None)
has_height = bool(height)
Copy link
Member

Choose a reason for hiding this comment

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

Hey @Speedy1991, would it be better to use has_width = width is not None instead of has_width = bool(width)? It might handle cases like 0 more clearly.

And will be not necessary to include or 0

@Speedy1991
Copy link
Author

Speedy1991 commented Sep 2, 2025

I'll check this PR again in 1-2 weeks after my vacation. I'm still not sure if there is more refactor needed, depending the dead code

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.

Bug if 0x0 is used with filters

2 participants