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

Refactor attrs support into reusable code #719

Closed
wants to merge 10 commits into from

Conversation

tristanlatr
Copy link
Contributor

This will help build code to support dataclasss and namedtuple without too much preliminary refactors.

@codecov
Copy link

codecov bot commented Jun 11, 2023

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (f03223c) 92.68% compared to head (b90beba) 92.66%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #719      +/-   ##
==========================================
- Coverage   92.68%   92.66%   -0.03%     
==========================================
  Files          47       48       +1     
  Lines        8180     8231      +51     
  Branches     1959     1970      +11     
==========================================
+ Hits         7582     7627      +45     
- Misses        343      347       +4     
- Partials      255      257       +2     
Files Coverage Δ
pydoctor/astutils.py 94.67% <100.00%> (+0.98%) ⬆️
pydoctor/extensions/_dataclass_like.py 95.34% <95.34%> (ø)
pydoctor/extensions/attrs.py 91.66% <87.87%> (-7.23%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

pydoctor/astutils.py Outdated Show resolved Hide resolved
decorator_list:List[ast.expr]

def iter_decorators(node:_HasDecoratorList, ctx: 'model.Documentable') -> Iterator[Tuple[Optional[str], ast.AST]]:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This function could be removed

@tristanlatr tristanlatr closed this Dec 7, 2023
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