-
Notifications
You must be signed in to change notification settings - Fork 9
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
Version 3.0.0 plan #30
Comments
@danyalejandro Hi Dany, not sure if this message will reach you. My name is Kan. I am currently responsible in maintaining this repo. |
Big +1 on a dataclass for Getting to static checking is a hard process. I've only recently done it in some of my repos, so my advice might be sketchy. Or maybe this is all stuff you're famiar with - sorry if so. But static typing is definitely helpful, and you can go one module at a time. It's more of a gradual process to be managed, accepting a certain amount of From a backwards compatibility perspective, the biggest challenge is when a function accepts more types than it probably should. E.g. you need a collection to be covariant, but you've previously accepted def foo(inputs: Union[list, tuple], params: Iterable) -> None:
inputs = tuple(inputs)
params = tuple(params)
... code that requires covariant containers I've heard good things about MonkeyType, but haven't used it. The other challenge is that the syntax for typing has evolved a lot in recent python versions, so things might be a bit more verbose until you can upgrade the minimum python version. I can take a look at beginning this process with something small, like util.py |
Thank you for your suggestions. I will start type check after finishing the second (get rid of those unused util.py) and third task (easier to identify the type), so it probably will be in April or May. |
Plan to release version 2.4.0 after pytest and documentation PRs are merged. This is to match the new documentation since
from onc import ONC
is not supported in 2.3.5.After that, plan to introduce some breaking changes to 3.0.0.
getLocations = get_locations
)print
andformatUtc
methods in the ONC class, and the whole onc.util.util.py file. I doube any one would use them since there are no documentations._config
method in _OncService.py as it makes it hard for the IDE to track the references of the instance variables of the ONC class. Also plan to use dataclass for ONC. I will elaborate my ideas later to ask for some suggestions.The text was updated successfully, but these errors were encountered: