単純化できる連鎖比較を報告します。

例:


  def do_comparison(x):
      xmin = 10
      xmax = 100
      if x >= xmin and x <= xmax:
          pass

IDE は if x >= xmin and x <= xmax を単純化することを提案します。 クイックフィックスが適用されると、コードは次のように変更されます。


  def do_comparison(x):
      xmin = 10
      xmax = 100
      if xmin <= x <= xmax:
          pass