-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Other] Method chunk_size
typing and usage mismatch.
#1486
Comments
Yeah it needs to be consistent so thanks for that, much appreciated for the work in you tackling this
|
I think I could also make the type of |
yoonthegoon
added a commit
to yoonthegoon/theHarvester
that referenced
this issue
Jul 24, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While addressing #1383, I came across this.
Typing on method chunk_list suggests parameter
items
is typeSized
.However,
Sized
is not indexable.It's used in __main__.py where
items = unique_resolved_domains
whereunique_resolved_domains
is sometimes alist
and sometimes aset
.In the case of
unique_resolved_domains
being aset
, the method should fail as'set' object is not subscriptable
.I would imagine the appropriate type hinting for
chunk_size
'sitems
parameter would beSequence
.I also imagine it's best to be consistent with the typing of
unique_resolved_domains
and make each instance of its declaration alist
ortuple
.I will make the changes as I see fit in resolving #1383 but want to document this conflict.
The text was updated successfully, but these errors were encountered: