The way enum stubs are defined causes their values to appear to PyCharm as their annotated type rather than as instances of their class. This causes PyCharm to warn that, for example, the per= argument to commands.MaxConcurrency.__init__ is an int rather than the expected BucketType.
