Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COMPAT: Add monkey patch for formulaic #594

Merged
merged 2 commits into from
Apr 16, 2024
Merged

COMPAT: Add monkey patch for formulaic #594

merged 2 commits into from
Apr 16, 2024

Conversation

bashtage
Copy link
Owner

No description provided.

@pep8speaks
Copy link

pep8speaks commented Apr 16, 2024

Hello @bashtage! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 522:5: E704 multiple statements on one line (def)
Line 530:5: E704 multiple statements on one line (def)
Line 539:5: E704 multiple statements on one line (def)

Line 26:5: E704 multiple statements on one line (def)
Line 28:5: E704 multiple statements on one line (def)

Comment last updated at 2024-04-16 14:18:26 UTC

self,
group: Literal["entity", "time", "both"],
*,
return_panel: Literal[False],
) -> Float64Array:
...
) -> Float64Array: ...

Check notice

Code scanning / CodeQL

Statement has no effect Note

This statement has no effect.
self,
group: Literal["entity", "time", "both"] = ...,
weights: PanelData | None = ...,
return_panel: Literal[True] = ...,
low_memory: bool = ...,
) -> PanelData:
...
) -> PanelData: ...

Check notice

Code scanning / CodeQL

Statement has no effect Note

This statement has no effect.
self,
group: Literal["entity", "time", "both"],
weights: PanelData | None,
return_panel: Literal[False],
) -> Float64Array:
...
) -> Float64Array: ... # noqa: E704

Check notice

Code scanning / CodeQL

Statement has no effect Note

This statement has no effect.
@@ -23,11 +23,9 @@


class SupportsKeysAndGetItem(Protocol[_KT, _VT_co]):
def keys(self) -> Iterable[_KT]:
...
def keys(self) -> Iterable[_KT]: ... # noqa: E704

Check notice

Code scanning / CodeQL

Statement has no effect Note

This statement has no effect.

def __getitem__(self, __k: _KT) -> _VT_co:
...
def __getitem__(self, __k: _KT) -> _VT_co: ... # noqa: E704

Check notice

Code scanning / CodeQL

Statement has no effect Note

This statement has no effect.
Copy link

codecov bot commented Apr 16, 2024

Codecov Report

Attention: Patch coverage is 72.00000% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 99.58%. Comparing base (a8f8dee) to head (224eaa0).
Report is 1 commits behind head on main.

Files Patch % Lines
linearmodels/panel/data.py 40.00% 0 Missing and 3 partials ⚠️
linearmodels/compat/formulaic.py 71.42% 1 Missing and 1 partial ⚠️
linearmodels/shared/utility.py 0.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #594      +/-   ##
==========================================
- Coverage   99.60%   99.58%   -0.02%     
==========================================
  Files          99      100       +1     
  Lines       17259    17269      +10     
  Branches     2460     2464       +4     
==========================================
+ Hits        17190    17198       +8     
+ Misses         30       26       -4     
- Partials       39       45       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bashtage bashtage merged commit 31e7033 into main Apr 16, 2024
6 of 16 checks passed
@bashtage bashtage deleted the numpy-3 branch April 16, 2024 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants