Skip to content

Commit 2b3f8dc

Browse files
authored
Update _base.py
1 parent 5b78905 commit 2b3f8dc

File tree

1 file changed

+5
-5
lines changed
  • addons/source-python/packages/source-python/players

1 file changed

+5
-5
lines changed

addons/source-python/packages/source-python/players/_base.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -816,21 +816,21 @@ def drop_weapon(self, weapon, target=None, velocity=None):
816816

817817
@property
818818
def is_flashlight_on(self):
819-
'''Return whether or not the flashlight of the player is turned on.'''
819+
"""Return whether or not the flashlight of the player is turned on."""
820820
return bool(self.effects & EntityEffects.DIMLIGHT)
821821

822822
def turn_flashlight_on(self):
823-
'''Turn on the flashlight of the player.'''
823+
"""Turn on the flashlight of the player."""
824824
self.effects |= EntityEffects.DIMLIGHT
825825

826826
def turn_flashlight_off(self):
827-
'''Turn off the flashlight of the player.'''
827+
"""Turn off the flashlight of the player."""
828828
self.effects &= ~EntityEffects.DIMLIGHT
829829

830830
def set_flashlight(self, state):
831-
'''Turn on/off the flashlight of the player.
831+
"""Turn on/off the flashlight of the player.
832832
833-
:param bool: The state of the flashlight to set.'''
833+
:param bool: The state of the flashlight to set."""
834834
if state:
835835
self.turn_flashlight_on()
836836
else:

0 commit comments

Comments
 (0)