File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 3636from click_extra .colorize import default_theme as theme
3737from click_extra .envvar import env_copy
3838from click_extra .testing import INDENT , args_cleanup , format_cli_prompt
39- from extra_platforms import UNIX , Group , current_platforms
39+ from extra_platforms import UNIX , Group , Platform , current_platforms
4040from packageurl import PackageURL
4141
4242from .version import TokenizedString , parse_version
@@ -577,9 +577,16 @@ def version(self) -> TokenizedString | None:
577577 @cached_property
578578 def supported (self ) -> bool :
579579 """Is the package manager supported on that platform?"""
580- # At this point self.platforms is normalized as a frozenset of Platform
581- # instances.
582- return len (self .platforms .intersection (current_platforms ())) > 0
580+ return (
581+ len (
582+ # XXX At this point self.platforms is normalized as a frozenset of
583+ # Platform instances.
584+ cast ("frozenset[Platform]" , self .platforms ).intersection (
585+ current_platforms ()
586+ )
587+ )
588+ > 0
589+ )
583590
584591 @cached_property
585592 def executable (self ) -> bool :
You can’t perform that action at this time.
0 commit comments