[Bug 274020] devel/meson: ModuleNotFoundError: No module named 'typing_extensions'
Date: Sat, 08 Mar 2025 11:08:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274020
Adriaan de Groot <adridg@freebsd.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Open |Closed
Resolution|--- |Unable to Reproduce
CC| |adridg@freebsd.org
--- Comment #5 from Adriaan de Groot <adridg@freebsd.org> ---
Looking at the meson code, it does this (in many places, example here condensed
from modules/gnome.py):
```
import typing as T
if T.TYPE_CHECKING:
from typing_extensions import Literal, TypedDict
```
It's supposed to be a conditional import; python3.11, and python3.9, have a
Python module `typing.py` that simply sets `TYPE_CHECKING` to False. I can only
imagine that the OP was somehow, or somewhy, enabling (stricter) type-checking
in the python interpreter. Given that neither Jan nor Charlie can reproduce the
problem, and neither can I (the guards are sufficient), I'm going to close this
because it's a non-default configuration and everyone has moved on.
--
You are receiving this mail because:
You are the assignee for the bug.