title: Python mutable NamedTuple
body: <p>I am looking for a struct like data structure I can create multiple instances from and have some type hinting without being immutable.</p>
  
  <p>So I have something like this:</p>
  
  <pre><code>class ConnectionConfig(NamedTuple):
      name: str
      url: str
      port: int
      user: str = ""
      pwd: str = ""
      client: Any = None
  </code></pre>
  
  <p>But I would like to have it mutable. I could do it like that: </p>
  
  <pre><code>class ConnectionConfig():
      def __init__(self, name: str, url: str, port: int, user: str = "", pwd: str = "", client: Any = None):
          self.name = name
          self.url = url
          self.port = port
          self.user = user
          self.pwd = pwd
          self.client = client
  </code></pre>
  
  <p>But man... that is ugly :/ Are there any built-in alternatives in python? (using Python 3.6.3)</p>