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

Extract generic decorator into a reusable class #569

Merged
merged 1 commit into from
Aug 17, 2023

Conversation

cottsay
Copy link
Member

@cottsay cottsay commented Aug 7, 2023

The only current use of the decorator pattern in colcon-core is the argument parser, but the concept can be applied generically in a variety of scenarios.

Motivation for this change is to implement the decorator pattern in the new standards-based Python extensions.

@cottsay cottsay added the enhancement New feature or request label Aug 7, 2023
@cottsay cottsay self-assigned this Aug 7, 2023
The only current use of the decorator pattern in colcon-core is the
argument parser, but the concept can be applied generically in a variety
of scenarios.
@codecov
Copy link

codecov bot commented Aug 7, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.04% 🎉

Comparison is base (7b70e61) 81.88% compared to head (c7c65fc) 81.92%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #569      +/-   ##
==========================================
+ Coverage   81.88%   81.92%   +0.04%     
==========================================
  Files          62       63       +1     
  Lines        3648     3657       +9     
  Branches      705      707       +2     
==========================================
+ Hits         2987     2996       +9     
  Misses        609      609              
  Partials       52       52              
Files Changed Coverage Δ
colcon_core/argument_parser/__init__.py 100.00% <100.00%> (ø)
colcon_core/generic_decorator.py 100.00% <100.00%> (ø)

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

@cottsay cottsay merged commit b21dd93 into master Aug 17, 2023
35 checks passed
@cottsay cottsay deleted the cottsay/generic-decorator branch August 17, 2023 22:28
@cottsay cottsay added this to the 0.13.0 milestone Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

2 participants