Skip to content

Commit

Permalink
Fix a typo in a warning message (#2032)
Browse files Browse the repository at this point in the history
Replaces `impportlib` with `importlib` in the warning message for
`traitsui.__version__`.


**Checklist**
- [ ] Add a news fragment if this PR is news-worthy for end users. (see
docs/releases/README.rst)
  • Loading branch information
mdickinson authored Jun 26, 2023
1 parent 93b89d1 commit 4a4e7c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion traitsui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __getattr__(name):

warn(
f"traitsui.{name} is deprecated, "
f"use impportlib.metadata.version('traitsui') ",
f"use importlib.metadata.version('traitsui') ",
DeprecationWarning,
)
return version('traitsui')
Expand Down

0 comments on commit 4a4e7c7

Please sign in to comment.