I think better to do:

```python
if self.inferred_freq is not None:
    return get_offset(self.inferred_freq)
```
Since inferred_freq should always return something compatible with get_offset, right?