pymensago/utils.py
def as_wid(self) -> UUID:
		'''Returns the user ID as a UUID or None if not a valid workspace ID'''
		if not self.widflag:
			return None
		
		# By not passing the value to the constructor and assigning directly we avoid making an
		# unnecessary (and expensive) regex call
		out = UUID()
		out.value = self.value
		return out
Returns the user ID as a UUID or None if not a valid workspace ID
Returns the user ID as a UUID or None if not a valid workspace ID
Returns the user ID as a UUID or None if not a valid workspace ID
def as_wid(self) -> UUID:
		if not self.widflag:
			return None
		out = UUID()
		out.value = self.value
		return out
def as_wid ( self ) -> UUID : if not self . widflag : return None out = UUID ( ) out . value = self . value return out
Returns the user ID as a UUID or None if not a valid workspace ID
Returns the user ID as a UUID or None if not a valid workspace ID
'''Returns the user ID as a UUID or None if not a valid workspace ID''' # By not passing the value to the constructor and assigning directly we avoid making an # unnecessary (and expensive) regex call
self