This regex doesn't detect method declarations that span multiple lines. It's a bit of an edge case.
For example
class TestSomething:
def test_with_a_ridiculously_long_long_name_in_a_galaxy_far_far_away(
self, some, parameters):
...
will be skipped,
I've changed regex to search to allow for methods with "def" and "self" that span multiple lines using the \_s to detect for newlines/spaces/tabs. For some reason I worry though, regexes are always seem nontrivial to deal with
This regex doesn't detect method declarations that span multiple lines. It's a bit of an edge case.
For example
will be skipped,
I've changed regex to search to allow for methods with "def" and "self" that span multiple lines using the
\_s
to detect for newlines/spaces/tabs. For some reason I worry though, regexes are always seem nontrivial to deal with