Lines Matching defs:we

29 import re as stdlib_re  # Avoid confusion with the re we export.
215 As a result, if we need to reconstruct the Callable from its __args__,
216 we need to unflatten it.
227 If obj is a type, we return a shorter version than the default
230 else, we fall back on repr(obj).
421 That is, we could do::
428 Luckily, we can instead prevent iteration by setting __iter__ to None, which
842 # If we do `def f(*args: *Ts)`, then we'll have `arg = '*Ts'`.
843 # Unfortunately, this isn't a valid expression on its own, so we
1044 example, if we define a generic class using a TypeVarTuple:
1048 Then we can parameterize that class with an arbitrary number of type
1285 # Also for simplicity we don't relay any dunder names
1377 # For example, we arrive here doing something like:
1408 # For example, suppose we had:
1417 # anything more exotic than a plain `TypeVar`, we need to consider
1462 # That means that if we had something like...
1467 # ...we need to be careful; `new_args` should end up as
1474 # If we then do:
1479 # `(float, int, str)` - so again, we should `extend`.
1801 does. For example, for some generic class `Foo`, this is called when we
2251 runtime we intentionally don't check anything (we want this
2326 # a class. To maintain backwards compatibility, we reverse
2516 # we will modify them when processing their direct holders.
2740 For example, suppose we have the following classes::
2753 # (Here we could write the user object to a database)
3190 pervasive in the interface; however we currently do not offer a