# Path: modernrpc/core.py
# def rpc_method(
#     func=None,
#     name: str = None,
#     entry_point: str = ALL,
#     protocol: Protocol = Protocol.ALL,
# ):
#     """
#     Mark a standard python function as RPC method.
# 
#     All arguments are optional
# 
#     :param func: A standard function
#     :param name: Used as RPC method name instead of original function name
#     :param entry_point: Default: ALL. Used to limit usage of the RPC method for a specific set of entry points
#     :param protocol: Default: ALL. Used to limit usage of the RPC method for a specific protocol (JSONRPC or XMLRPC)
#     """
# 
#     def decorated(_func):
#         _func.modernrpc_enabled = True
#         _func.modernrpc_name = name or _func.__name__
#         _func.modernrpc_entry_point = entry_point
#         _func.modernrpc_protocol = protocol
# 
#         return _func
# 
#     # If @rpc_method() is used with parenthesis (with or without argument)
#     if func is None:
#         return decorated
# 
#     # If @rpc_method is used without parenthesis
#     return decorated(func)


import datetime
from django.contrib.auth import get_user_model
from modernrpc.core import rpc_method




@rpc_method()
def get_true():
    return True


@rpc_method()
def get_false():
    return False



# Path: modernrpc/core.py
# def rpc_method(
#     func=None,
#     name: str = None,
#     entry_point: str = ALL,
#     protocol: Protocol = Protocol.ALL,
# ):
#     """
#     Mark a standard python function as RPC method.
# 
#     All arguments are optional
# 
#     :param func: A standard function
#     :param name: Used as RPC method name instead of original function name
#     :param entry_point: Default: ALL. Used to limit usage of the RPC method for a specific set of entry points
#     :param protocol: Default: ALL. Used to limit usage of the RPC method for a specific protocol (JSONRPC or XMLRPC)
#     """
# 
#     def decorated(_func):
#         _func.modernrpc_enabled = True
#         _func.modernrpc_name = name or _func.__name__
#         _func.modernrpc_entry_point = entry_point
#         _func.modernrpc_protocol = protocol
# 
#         return _func
# 
#     # If @rpc_method() is used with parenthesis (with or without argument)
#     if func is None:
#         return decorated
# 
#     # If @rpc_method is used without parenthesis
#     return decorated(func)


# Path: tests/testsite/rpc_methods_stub/specific_types.py
import datetime
from django.contrib.auth import get_user_model
from modernrpc.core import rpc_method





@rpc_method()
def get_true():
    return True


@rpc_method()
def get_false():
    return False



@rpc_method()