Rename docstring Kwargs to Keyword Args
This commit is contained in:
parent
29fc31bb01
commit
7fed14d233
58 changed files with 203 additions and 213 deletions
|
|
@ -337,7 +337,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
Args:
|
||||
count (int): Number of objects of this type
|
||||
looker (Object): Onlooker. Not used by default.
|
||||
Kwargs:
|
||||
Keyword args:
|
||||
key (str): Optional key to pluralize, if given, use this instead of the object's key.
|
||||
Returns:
|
||||
singular (str): The singular form to display.
|
||||
|
|
@ -559,7 +559,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
session (Session, optional): Session to
|
||||
return results to
|
||||
|
||||
Kwargs:
|
||||
Keyword args:
|
||||
Other keyword arguments will be added to the found command
|
||||
object instace as variables before it executes. This is
|
||||
unused by default Evennia but may be used to set flags and
|
||||
|
|
@ -605,7 +605,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
depends on the MULTISESSION_MODE.
|
||||
options (dict, optional): Message-specific option-value
|
||||
pairs. These will be applied at the protocol level.
|
||||
Kwargs:
|
||||
Keyword args:
|
||||
any (string or tuples): All kwarg keys not listed above
|
||||
will be treated as send-command names and their arguments
|
||||
(which can be a string or a tuple).
|
||||
|
|
@ -656,7 +656,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
exclude (list, optional): A list of object not to call the
|
||||
function on.
|
||||
|
||||
Kwargs:
|
||||
Keyword args:
|
||||
Keyword arguments will be passed to the function for all objects.
|
||||
"""
|
||||
contents = self.contents
|
||||
|
|
@ -688,7 +688,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
for every looker in contents that receives the
|
||||
message. This allows for every object to potentially
|
||||
get its own customized string.
|
||||
Kwargs:
|
||||
Keyword args:
|
||||
Keyword arguments will be passed on to `obj.msg()` for all
|
||||
messaged objects.
|
||||
|
||||
|
|
@ -763,7 +763,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
(at_before/after_move etc) with quiet=True, this is as quiet a move
|
||||
as can be done.
|
||||
|
||||
Kwargs:
|
||||
Keyword args:
|
||||
Passed on to announce_move_to and announce_move_from hooks.
|
||||
|
||||
Returns:
|
||||
|
|
@ -937,7 +937,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
key (str): Name of the new object.
|
||||
account (Account): Account to attribute this object to.
|
||||
|
||||
Kwargs:
|
||||
Keyword args:
|
||||
description (str): Brief description for this object.
|
||||
ip (str): IP address of creator (for object auditing).
|
||||
|
||||
|
|
@ -1103,7 +1103,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
no_superuser_bypass (bool, optional): If `True`, don't skip
|
||||
lock check for superuser (be careful with this one).
|
||||
|
||||
Kwargs:
|
||||
Keyword args:
|
||||
Passed on to the at_access hook along with the result of the access check.
|
||||
|
||||
"""
|
||||
|
|
@ -1262,7 +1262,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
place to do it. This is called also if the object currently
|
||||
have no cmdsets.
|
||||
|
||||
Kwargs:
|
||||
Keyword args:
|
||||
caller (Session, Object or Account): The caller requesting
|
||||
this cmdset.
|
||||
|
||||
|
|
@ -1364,7 +1364,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
accessing_obj (Object or Account): The entity trying to gain access.
|
||||
access_type (str): The type of access that was requested.
|
||||
|
||||
Kwargs:
|
||||
Keyword args:
|
||||
Not used by default, added for possible expandability in a
|
||||
game.
|
||||
|
||||
|
|
@ -1615,7 +1615,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
text (str, optional): The message received.
|
||||
from_obj (any, optional): The object sending the message.
|
||||
|
||||
Kwargs:
|
||||
Keyword args:
|
||||
This includes any keywords sent to the `msg` method.
|
||||
|
||||
Returns:
|
||||
|
|
@ -1637,7 +1637,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
text (str, optional): Text to send.
|
||||
to_obj (any, optional): The object to send to.
|
||||
|
||||
Kwargs:
|
||||
Keyword args:
|
||||
Keywords passed from msg()
|
||||
|
||||
Notes:
|
||||
|
|
@ -1879,7 +1879,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
|
||||
Args:
|
||||
message (str): The suggested say/whisper text spoken by self.
|
||||
Kwargs:
|
||||
Keyword args:
|
||||
whisper (bool): If True, this is a whisper rather than
|
||||
a say. This is sent by the whisper command by default.
|
||||
Other verbal commands could use this hook in similar
|
||||
|
|
@ -1919,7 +1919,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
(by default only used by whispers).
|
||||
msg_receivers(str): Specific message to pass to the receiver(s). This will parsed
|
||||
with the {receiver} placeholder replaced with the given receiver.
|
||||
Kwargs:
|
||||
Keyword args:
|
||||
whisper (bool): If this is a whisper rather than a say. Kwargs
|
||||
can be used by other verbal commands in a similar way.
|
||||
mapping (dict): Pass an additional mapping to the message.
|
||||
|
|
@ -2058,7 +2058,7 @@ class DefaultCharacter(DefaultObject):
|
|||
an argument, but one can fake it out by supplying None-- it will
|
||||
change the default lockset and skip creator attribution.
|
||||
|
||||
Kwargs:
|
||||
Keyword args:
|
||||
description (str): Brief description for this object.
|
||||
ip (str): IP address of creator (for object auditing).
|
||||
All other kwargs will be passed into the create_object call.
|
||||
|
|
@ -2316,7 +2316,7 @@ class DefaultRoom(DefaultObject):
|
|||
key (str): Name of the new Room.
|
||||
account (obj): Account to associate this Room with.
|
||||
|
||||
Kwargs:
|
||||
Keyword args:
|
||||
description (str): Brief description for this object.
|
||||
ip (str): IP address of creator (for object auditing).
|
||||
|
||||
|
|
@ -2513,7 +2513,7 @@ class DefaultExit(DefaultObject):
|
|||
source (Room): The room to create this exit in.
|
||||
dest (Room): The room to which this exit should go.
|
||||
|
||||
Kwargs:
|
||||
Keyword args:
|
||||
description (str): Brief description for this object.
|
||||
ip (str): IP address of creator (for object auditing).
|
||||
|
||||
|
|
@ -2600,7 +2600,7 @@ class DefaultExit(DefaultObject):
|
|||
place to do it. This is called also if the object currently
|
||||
has no cmdsets.
|
||||
|
||||
Kwargs:
|
||||
Keyword args:
|
||||
force_init (bool): If `True`, force a re-build of the cmdset
|
||||
(for example to update aliases).
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue