title: My code works in Python 3.8, but the same code does not work in Python 3.5
body: <p>my code works perfectly in Python 3.8, but when I switch to Python 3.5 in same operating system, with same code and everything else, it starts throwing out &quot;SyntaxError: invalid syntax&quot;.</p>
  <p>Here is the error, and the part of the code that I think which relates to the error :</p>
  <pre><code>Traceback (most recent call last):
    File &quot;pwb.py&quot;, line 390, in &lt;module&gt;
      if not main():
    File &quot;pwb.py&quot;, line 385, in main
      file_package)
    File &quot;pwb.py&quot;, line 100, in run_python_file
      exec(compile(source, filename, 'exec', dont_inherit=True),
    File &quot;.\scripts\signbot.py&quot;, line 83
      namespace: int
               ^
  SyntaxError: invalid syntax
  CRITICAL: Exiting due to uncaught exception &lt;class 'SyntaxError'&gt;
  </code></pre>
  <p>And here is the part of the code :</p>
  <pre><code>@dataclass
  class RevisionInfo:
      namespace: int
      title: str
      type: str
      bot: bool
      comment: str
      user: str
      oldRevision: Optional[int]
      newRevision: int
      timestamp: int
  </code></pre>
  <p>Sorry if the question title is not specific, but I'm having troubles getting this code working in Python 3.5. The server I'm going to run this code in only supports Python 3.5, so I need to get this working with 3.5. Thanks.</p>