PyCharm\'s type checker doesn\'t recognize that bitwise operations on an IntFlag instance are still IntFlags. It gives warnings. The python docs say, "IntFlag membe