-
Notifications
You must be signed in to change notification settings - Fork 1
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
Code cleanup #6
Comments
|
await asyncio.gather(shortener.short('https://github.com/'),
shortener.short('https://github.com/blikenoother/aiourlshortener/'),
return_exceptions=True)
The point is that
property decorated function.
We could refactor |
can you pls explain this with sample code? |
https://github.com/das7pad/aiourlshortener/tree/refactor-shortener-class |
These lines / instance attributes remain unused in the code:
the keyword arguments as attributes, however there are no defaults are set, access is dangerous.
aiourlshortener/aiourlshortener/shorteners/__init__.py
Lines 49 to 50 in fee8d34
a possibly expanded url or user defined url to short
aiourlshortener/aiourlshortener/shorteners/__init__.py
Line 68 in fee8d34
aiourlshortener/aiourlshortener/shorteners/__init__.py
Line 100 in 1ea040e
a possibly shortened url or user defined url to expand
aiourlshortener/aiourlshortener/shorteners/__init__.py
Line 88 in fee8d34
aiourlshortener/aiourlshortener/shorteners/__init__.py
Line 75 in 1ea040e
The actual name of the derived
BaseShortener
:aiourlshortener/aiourlshortener/shorteners/__init__.py
Line 40 in fee8d34
And one more thing:
What were your thoughts to allow an actual derived
BaseShortener
(let's call itDemo
) as theengine
argument for aShortener
? One could simply create an instance ofDemo
and use the api of it?The text was updated successfully, but these errors were encountered: