napari / docs

Documentation for napari (other than API docs)
BSD 3-Clause "New" or "Revised" License
11 stars 36 forks source link

Add note on using str instead of importing for napari type annot in plugins #381

Closed lucyleeow closed 6 months ago

lucyleeow commented 6 months ago

References and relevant issues

Related to https://github.com/napari/npe2/pull/345/files

Description

Add best practice note to explicitly talk about avoiding importing napari for type annotations to prevent having napari as dependency for plugins.

Happy to change / amend wording.

lucyleeow commented 6 months ago

cc @DragaDoncila