Skip to content

Add Python helpers - #195

Open
QuinnCarisCapgemini wants to merge 1 commit into
mainfrom
python-helpers
Open

QuinnCarisCapgemini wants to merge 1 commit into
mainfrom
python-helpers

Conversation

@QuinnCarisCapgemini

Copy link
Copy Markdown
Collaborator

Adds three helper methods that any Python recipe can access by operating on self:

  • extract_call_arguments: returns positional and keyword call arguments from a call node (or a child node within a call)
  • class_base_arguments: returns declared base class signatures
  • class_inherits_from: checks whether a class inherits from a given base name

Tests for all methods have been provided as well, which clarifies intent of use cases as well.

Duplicate of #194, but this one has only verified commits.

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.

1 participant