Skip to content

Fix types in 'napari.utils.colormaps.categorical_colormap'#6154

Merged
andy-sweet merged 2 commits intonapari:mainfrom
Carreau:types-V
Aug 30, 2023
Merged

Fix types in 'napari.utils.colormaps.categorical_colormap'#6154
andy-sweet merged 2 commits intonapari:mainfrom
Carreau:types-V

Conversation

@Carreau
Copy link
Copy Markdown
Contributor

@Carreau Carreau commented Aug 15, 2023

The only effect (beyond typing) is to validate the color at creation. ColorValue only exposes extra classmethod to work with color.

The only effect (beyond typing) is to validate the color at creation.
ColorValue only exposes extra classmethod to work with color.
@Carreau Carreau added the maintenance PR with maintance changes, label Aug 15, 2023
@codecov
Copy link
Copy Markdown

codecov bot commented Aug 15, 2023

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.67%. Comparing base (e54e065) to head (bbb987a).
⚠️ Report is 1352 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6154   +/-   ##
=======================================
  Coverage   91.67%   91.67%           
=======================================
  Files         582      582           
  Lines       51073    51073           
=======================================
+ Hits        46819    46822    +3     
+ Misses       4254     4251    -3     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Carreau Carreau added this to the 0.5.0 milestone Aug 15, 2023
Copy link
Copy Markdown
Member

@andy-sweet andy-sweet left a comment

Choose a reason for hiding this comment

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

Looks good, though the suggestion is probably worth bringing in.

Copy link
Copy Markdown
Member

@andy-sweet andy-sweet left a comment

Choose a reason for hiding this comment

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

I merged main in and also brought in the suggestion. Will merge this after 24 hours unless I hear otherwise.

@andy-sweet andy-sweet added the ready to merge Last chance for comments! Will be merged in ~24h label Aug 29, 2023
@andy-sweet andy-sweet merged commit 70b8ea4 into napari:main Aug 30, 2023
@melonora melonora removed the ready to merge Last chance for comments! Will be merged in ~24h label Sep 15, 2023
kne42 added a commit to kne42/napari that referenced this pull request Sep 19, 2023
* main: (26 commits)
  Fix some typing in napari.components (napari#6203)
  Use class name for object that does not have qt name (napari#6222)
  test: [Automatic] Constraints upgrades: `hypothesis`, `magicgui`, `psygnal`, `tensorstore`, `tifffile`, `tqdm`, `virtualenv` (napari#6143)
  Replace more np.all( ... = ...) with np.array_equal (napari#6213)
  remove np.all(... == ...) in test_surface.py (napari#6218)
  Ensure pandas Series is initialized with a list as data (napari#6226)
  Stop using temporary directory for store array for paint test (napari#6191)
  Bugfix: ensure thumbnail represents canvas when multiscale (napari#6200)
  cleanup np.all(... == ...) from test_points.py (napari#6217)
  [pre-commit.ci] pre-commit autoupdate (napari#6221)
  use app-model for file menu (napari#4865)
  Add tests to cover slicing behavior when changing layers and data (napari#4819)
  [pre-commit.ci] pre-commit autoupdate (napari#6128)
  Add test coverage for async slicing of labels (napari#5325)
  Add collision check when set colors for labels layer (napari#6193)
  Update "toggle ndview" text (napari#6192)
  Prevent layer controls buttons changing layout while taking screenshots with flash effect on (napari#6194)
  Fix typing in napari.utils.perf (napari#6132)
  Add GUI test coverage for changes to Labels.show_selected_label (napari#5372)
  Fix types in 'napari.utils.colormaps.categorical_colormap' (napari#6154)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance PR with maintance changes,

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants