Skip to content
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

reduce-op-complexity #233

Merged
merged 59 commits into from
Oct 17, 2023
Merged

reduce-op-complexity #233

merged 59 commits into from
Oct 17, 2023

Conversation

dkfellows
Copy link
Member

@dkfellows dkfellows commented Jun 13, 2023

I'm not doing types for the matrix or ranged packages. Those are complicated! OK, so I did those. I've got better at writing types.

Note that we're a long long way off being able to use mypy as a standard checking utility. If you want to enable it in your IDE, that's fine (it's what I've done).

The types are now checked with mypy. Not all sub-packages are typed or typed fully, but the key ones are.

@dkfellows dkfellows self-assigned this Jun 13, 2023
dkfellows added 20 commits June 13, 2023 09:38
The types for the overrides decorator are particularly tricky
Turns out that abstractproperty decorators give mypy severe indigestion,
but replacing them with property and abstractmethod works fine. Bleah.
The ranged stuff is *complicated!*
Positional-only parameters make their appearance now we have 3.8 as a
minimum
@dkfellows dkfellows changed the title Limited types to support defining types for PACMAN Limited types to support other packages Jul 7, 2023
Copy link
Member

@Christian-B Christian-B left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok to merge.

Some follow up pr to

  1. Simplify Config holder
  2. Reduce the assert is not None calls needed

@Christian-B Christian-B mentioned this pull request Oct 16, 2023
@Christian-B Christian-B changed the title Limited types to support other packages Type Checking and lots of minor changes Oct 17, 2023
@Christian-B Christian-B changed the title Type Checking and lots of minor changes reduce-op-complexity Oct 17, 2023
@Christian-B Christian-B merged commit 27a8709 into master Oct 17, 2023
10 checks passed
@Christian-B Christian-B deleted the reduce-op-complexity branch October 17, 2023 10:11
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.

3 participants