Python jinja2._compat.integer_types() Examples

The following are 30 code examples of jinja2._compat.integer_types(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module jinja2._compat , or try the search function .
Example #1
Source File: tests.py    From luci-py with Apache License 2.0 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #2
Source File: tests.py    From odoo12-x64 with GNU General Public License v3.0 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #3
Source File: tests.py    From android_universal with MIT License 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #4
Source File: tests.py    From Carnets with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #5
Source File: tests.py    From data with GNU General Public License v3.0 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #6
Source File: tests.py    From data with GNU General Public License v3.0 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #7
Source File: tests.py    From data with GNU General Public License v3.0 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #8
Source File: tests.py    From data with GNU General Public License v3.0 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #9
Source File: tests.py    From EDCOP with Apache License 2.0 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #10
Source File: tests.py    From SA-ctf_scoreboard with Creative Commons Zero v1.0 Universal 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #11
Source File: tests.py    From odoo13-x64 with GNU General Public License v3.0 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #12
Source File: tests.py    From syntheticmass with Apache License 2.0 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #13
Source File: tests.py    From PhonePi_SampleServer with MIT License 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #14
Source File: tests.py    From luci-py with Apache License 2.0 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #15
Source File: tests.py    From luci-py with Apache License 2.0 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #16
Source File: tests.py    From luci-py with Apache License 2.0 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #17
Source File: tests.py    From misp42splunk with GNU Lesser General Public License v3.0 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #18
Source File: tests.py    From luci-py with Apache License 2.0 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #19
Source File: tests.py    From planespotter with MIT License 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #20
Source File: tests.py    From Financial-Portfolio-Flask with MIT License 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #21
Source File: tests.py    From cadquery-freecad-module with GNU Lesser General Public License v3.0 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #22
Source File: tests.py    From scylla with Apache License 2.0 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #23
Source File: tests.py    From Building-Recommendation-Systems-with-Python with MIT License 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #24
Source File: tests.py    From Building-Recommendation-Systems-with-Python with MIT License 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #25
Source File: tests.py    From pySINDy with MIT License 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #26
Source File: tests.py    From OpenXR-SDK-Source with Apache License 2.0 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #27
Source File: tests.py    From RSSNewsGAE with Apache License 2.0 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #28
Source File: tests.py    From jbox with MIT License 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #29
Source File: tests.py    From recruit with Apache License 2.0 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal)) 
Example #30
Source File: tests.py    From recruit with Apache License 2.0 5 votes vote down vote up
def test_number(value):
    """Return true if the variable is a number."""
    return isinstance(value, integer_types + (float, complex, decimal.Decimal))