parameters: (self, text: str)
return_statement: return sum(
              self._EAW_MAP.get(east_asian_width(c), self.ambiguous_width) for c in text
          )
docstring: Calculate display width considering unicode East Asian Width
docstring_summary: Calculate display width considering unicode East Asian Width
docstring_tokens: Calculate display width considering unicode East Asian Width
function: def len(self, text: str) -> int:
          """
          Calculate display width considering unicode East Asian Width
          """
          if not isinstance(text, str):
              return len(text)
  
          return sum(
              self._EAW_MAP.get(east_asian_width(c), self.ambiguous_width) for c in text
          )
function_tokens: def len ( self , text : str ) -> int : if not isinstance ( text , str ) : return len ( text ) return sum ( self . _EAW_MAP . get ( east_asian_width ( c ) , self . ambiguous_width ) for c in text )