Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
List of all members
jinja2.runtime.StrictUndefined Class Reference
Inheritance diagram for jinja2.runtime.StrictUndefined:
Inheritance graph
[legend]
Collaboration diagram for jinja2.runtime.StrictUndefined:
Collaboration graph
[legend]

Additional Inherited Members

- Public Member Functions inherited from jinja2.runtime.Undefined
None __init__ (self, t.Optional[str] hint=None, t.Any obj=missing, t.Optional[str] name=None, t.Type[TemplateRuntimeError] exc=UndefinedError)
 
t.Any __getattr__ (self, str name)
 
bool __eq__ (self, t.Any other)
 
bool __ne__ (self, t.Any other)
 
int __hash__ (self)
 
str __str__ (self)
 
int __len__ (self)
 
t.Iterator[t.Any] __iter__ (self)
 
t.AsyncIterator[t.Any] __aiter__ (self)
 
bool __bool__ (self)
 
str __repr__ (self)
 
- Protected Member Functions inherited from jinja2.runtime.Undefined
str _undefined_message (self)
 
"te.NoReturn" _fail_with_undefined_error (self, *t.Any args, **t.Any kwargs)
 
- Protected Attributes inherited from jinja2.runtime.Undefined
 _undefined_hint
 
 _undefined_obj
 
 _undefined_name
 
 _undefined_exception
 
 _undefined_message
 

Detailed Description

An undefined that barks on print and iteration as well as boolean
tests and all kinds of comparisons.  In other words: you can do nothing
with it except checking if it's defined using the `defined` test.

>>> foo = StrictUndefined(name='foo')
>>> str(foo)
Traceback (most recent call last):
  ...
jinja2.exceptions.UndefinedError: 'foo' is undefined
>>> not foo
Traceback (most recent call last):
  ...
jinja2.exceptions.UndefinedError: 'foo' is undefined
>>> foo + 42
Traceback (most recent call last):
  ...
jinja2.exceptions.UndefinedError: 'foo' is undefined

The documentation for this class was generated from the following file: