mirror of
https://github.com/bendtherules/humblematch.git
synced 2026-08-18 13:52:00 +00:00
Added docs
This commit is contained in:
+9
-1
@@ -4,10 +4,11 @@ from collections import Mapping, Iterable
|
||||
from warnings import warn
|
||||
import logging
|
||||
import types
|
||||
import numbers
|
||||
|
||||
# logging.debug = print
|
||||
|
||||
__all__ = ["Any", "OR", "WrapObj", "w", "WrapMultiObj"]
|
||||
__all__ = ["Any", "OR", "WrapObj", "w", "WrapMultiObj", "inf", "StringTypes", "NumberType", "FunctionType", "ClassType"]
|
||||
|
||||
|
||||
class MetaAny(type):
|
||||
@@ -523,6 +524,13 @@ def check_as_value_and_type(to_check, value_or_type):
|
||||
|
||||
w = WrapObj
|
||||
|
||||
# some extra constants
|
||||
inf = float("inf")
|
||||
StringTypes = OR(types.StringTypes)
|
||||
NumberType = numbers.Number
|
||||
FunctionType = types.FunctionType
|
||||
ClassType = types.ClassType
|
||||
|
||||
|
||||
# to think and todo
|
||||
# def fmatch():
|
||||
|
||||
Reference in New Issue
Block a user