Open Harding-Stardust opened 3 months ago
Right now, it's an int or list[int] or None https://github.com/srounet/Pymem/blob/8cf1323f89ce0e8d963d6ada358c435cf9a3bc3b/pymem/pattern.py#L153
I suggest to always return a list[int], if no hits then it's an empty list otherwise it's filled with the results. Makes the code much cleaner to work with.
this is something we could look at for 2.0 since people could be relying on current behavior
Right now, it's an int or list[int] or None https://github.com/srounet/Pymem/blob/8cf1323f89ce0e8d963d6ada358c435cf9a3bc3b/pymem/pattern.py#L153
I suggest to always return a list[int], if no hits then it's an empty list otherwise it's filled with the results. Makes the code much cleaner to work with.