# -*- coding:utf-8 -*-


class StringUtil(object):

    num_set = set([str(item) for item in range(10)])
    num_set.add(".")

    @classmethod
    def isnum(cls, value):
        if value is None or not isinstance(value, str):
            return False

        value_set = set(value)
        return value_set.issubset(cls.num_set)



d6a890600edc2113aa8dd6b93105cdce562e55b9
<mask token>

class StringUtil(object):
    <mask token>
    num_set.add('.')
    <mask token>

class StringUtil(object):
    <mask token>
    num_set.add('.')

    @classmethod
    def isnum(cls, value):
        if value is None or not isinstance(value, str):
            return False
        value_set = set(value)
        return value_set.issubset(cls.num_set)

class StringUtil(object):
    num_set = set([str(item) for item in range(10)])
    num_set.add('.')

    @classmethod
    def isnum(cls, value):
        if value is None or not isinstance(value, str):
            return False
        value_set = set(value)
        return value_set.issubset(cls.num_set)

# -*- coding:utf-8 -*-


class StringUtil(object):

    num_set = set([str(item) for item in range(10)])
    num_set.add(".")

    @classmethod
    def isnum(cls, value):
        if value is None or not isinstance(value, str):
            return False

        value_set = set(value)
        return value_set.issubset(cls.num_set)


