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

Feature/entity disabled #21

Merged
merged 4 commits into from
Dec 7, 2021
Merged

Feature/entity disabled #21

merged 4 commits into from
Dec 7, 2021

Conversation

BenBradnick
Copy link
Member

This is to fix #19.

Currently mypy complains because the base class Entity has no attribute entity_disabled - but if I add a type hint to this class then other unit tests fail due to an argument with a default value then being defined before a non-default argument.

I could ignore the check on that line but I was wondering if there was a real fix?

@thomascobb
Copy link

If you put it in the baseclass too without the initial value, but remove the dataclass decorator, does that work?

@codecov-commenter
Copy link

codecov-commenter commented Nov 22, 2021

Codecov Report

❗ No coverage uploaded for pull request base (master@aa3c972). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #21   +/-   ##
=========================================
  Coverage          ?   98.06%           
=========================================
  Files             ?        8           
  Lines             ?      310           
  Branches          ?        0           
=========================================
  Hits              ?      304           
  Misses            ?        6           
  Partials          ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aa3c972...4d5ed02. Read the comment docs.

@BenBradnick BenBradnick force-pushed the feature/entity-disabled branch from 2878ce1 to 268d59c Compare November 22, 2021 14:35
@BenBradnick
Copy link
Member Author

Hi @thomascobb can you take another look now that CI looks happy again?

setup.cfg Outdated Show resolved Hide resolved
setup.cfg Outdated Show resolved Hide resolved
@thomascobb thomascobb merged commit a8fd489 into master Dec 7, 2021
@thomascobb thomascobb deleted the feature/entity-disabled branch December 7, 2021 10:27
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.

Add an "entity_disabled" argument to each created dataclass
3 participants