title: Proper way to create class variable in Data Class
body: <p>I've just begun playing around with Python's Data Classes, and I would like confirm that I am declaring Class Variables in the proper way. </p>
  
  <p><strong>Using regular python classes</strong></p>
  
  <pre><code>class Employee:
  
      raise_amount = .05
  
      def __init__(self, fname, lname, pay):
          self.fname = fname
          self.lname = lname
          self.pay = pay
  </code></pre>
  
  <p><strong>Using python Data Class</strong></p>
  
  <pre><code>@dataclass
  class Employee:
      fname: str
      lname: str
      pay: int
      raise_amount = .05
  </code></pre>
  
  <p>The class variable I am referring to is <code>raise_amount</code>. Is this a properly declared class variable using Data Classes? Or is there a better way of doing so? </p>
  
  <p>I have tested the data class implementation already and it provides the expected functionality, but I am mainly wondering if my implementation is following best practices. </p>