title: How to remove single quotes from string inside curly braces? (python, yaml)
body: <p>I'm using pyyaml. And writing code that will convert user information into yaml file of certain style. And I have certain requirements. Like some strings should have single qoutation, some double quotation and the rest should have no quotation mark at all, but they do.</p>
  <p>I want achieve the following output in the yaml file:</p>
  <pre><code>class: {child}
  </code></pre>
  <p>But I get this:</p>
  <pre><code>class: '{child}'
  </code></pre>
  <p>How can I get rid of single quotes here? And it does same for 'false'/'true'. It keeps quotes.</p>
  <p>I am using python 3.9,PyYAML 6.0</p>
  <p>, thanks in advance.</p>
  <p>*Some updates.
  What I used to do is:</p>
  <pre><code>data = {}
  data.update({'dev_class' : '{child}'})
  </code></pre>
  <p>And dump it</p>
  <pre><code>with open(&quot;package.yaml&quot;, 'w', encoding='utf-8') as f:
      yaml.dump(data,f, allow_unicode=True,encoding='utf-8',sort_keys=False, width=float(&quot;inf&quot;))
  </code></pre>
  <p>That will result as I already mentioned:</p>
  <pre><code>dev_class: '{child}'
  </code></pre>
  <p>I tried to manipulate with string itself using str(), replace(), and so on. It had no result. Then since I am kinda declaring a set, I decide to add not a string, but a set.</p>
  <pre><code>data.update({'dev_class' : {'moisture'}})
  </code></pre>
  <p>And I received the following:</p>
  <pre><code>dev_class: !!set
  o:
  e:
  t:
  m:
  i:
  s:
  u:
  r:
  </code></pre>
  <p>So, I still in search.</p>