Skip to content

CLEAN dubious docstring #50344

Closed
Closed
@MarcoGorelli

Description

@MarcoGorelli

This looks odd - the docstring is broken in two, and there's an assignment in the middle?

def __init__(self, n=1, normalize=False):
n = self._validate_n(n)
self.n = n
"""
Number of multiples of the frequency.
Examples
--------
>>> pd.offsets.Hour(5).n
5
"""
self.normalize = normalize
"""
Return boolean whether the frequency can align with midnight.
Examples
--------
>>> pd.offsets.Hour(5).normalize
False
"""
self._cache = {}

It looks like something might not have gone quite right during a merge conflict, and was kept in?

If anyone felt like having a look at git blame / git log to figure this out, that'd be helpful

No need to comment "can I work on this?" - if you know your way around git and figure this out, then go ahead and work on it - thanks 🙏

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions