Please solve the programming task below using a self-contained code snippet in a markdown code block.

The power of the string is the maximum length of a non-empty substring that contains only one unique character.
Given a string s, return the power of s.
 
Please complete the following python code precisely:
```python
class Solution:
    def maxPower(self, s: str) -> int:
```