code: async def update(self):
          '''Update an object with current info.'''
          if self.client.session.closed:
              async with core.Client() as client:
                  data = await client.request(self.url)
          else:
              data = await self.client.request(self.url)
  
          self.raw_data = data
          self.from_data(data)
  
          return selync def update(self):
          '''Update an object with current info.'''
          if self.client.session.closed:
              async with core.Client() as client:
                  data = await client.request(self.url)
          else:
              data = await self.client.request(self.url)
  
          self.raw_data = data
          self.from_data(data)
  
          return self
docs: Update an object with current info.