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

Public Member Functions

str __str__ (self)
 
- 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)
 
int __len__ (self)
 
t.Iterator[t.Any] __iter__ (self)
 
t.AsyncIterator[t.Any] __aiter__ (self)
 
bool __bool__ (self)
 
str __repr__ (self)
 

Additional Inherited Members

- 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 returns the debug info when printed.

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

Member Function Documentation

◆ __str__()

str jinja2.runtime.DebugUndefined.__str__ (   self)

Reimplemented from jinja2.runtime.Undefined.


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