Skip to content

Refactoring advice before contribution #1572

Answered by lsegal
OmriSama asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry for the late reply.

I want to know if there are any more efficient ways to refactor this

I don't really have the bandwidth to do a full review here, so my initial suggestion would simply be: if it works, it's likely factored well. Golfing code is likely only going to help if driven by tests and specific needs. If you're using a linter that you're happy with, and the linter is happy with it, you should be fine. Generally speaking this is how you would approach the problem.

  1. Is there an easier/built in way to get kwargs/options from a method call other than what I did?

Reading from the parameters of the AST is the correct way.

  1. Are all the potential SCOPES outlined/defined elsew…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lsegal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #1360 on September 03, 2024 08:31.