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

Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.
If the fractional part is repeating, enclose the repeating part in parentheses.
If multiple answers are possible, return any of them.
It is guaranteed that the length of the answer string is less than 104 for all the given inputs.
 
Please complete the following python code precisely:
```python
class Solution:
    def fractionToDecimal(self, numerator: int, denominator: int) -> str:
```