• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

QuantEcon / QuantEcon.py / 12336863143

15 Dec 2024 07:24AM UTC coverage: 92.716% (+0.03%) from 92.691%
12336863143

Pull #751

github

web-flow
Merge 4401250e6 into 4f4f96485
Pull Request #751: FIX: Fix deprecations in tests

2 of 2 new or added lines in 2 files covered. (100.0%)

7357 of 7935 relevant lines covered (92.72%)

2.78 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/quantecon/arma.py
1
# This file is not meant for public use and will be removed v0.8.0.
2
# Use the `quantecon` namespace for importing the objects
3
# included below.
4

5
import warnings
×
6
from . import _arma
×
7

8

9
__all__ = ['ARMA']
×
10

11

12
def __dir__():
×
13
    return __all__
×
14

15

16
def __getattr__(name):
×
17
    if name not in __all__:
×
18
        raise AttributeError(
×
19
                f"`quantecon.arma` is deprecated and has no attribute '{name}'."
20
            )
21

22
    warnings.warn(f"Please use `{name}` from the `quantecon` namespace, "
×
23
                  "the `quantecon.arma` namespace is deprecated. You can use "
24
                  f"the following instead:\n `from quantecon import {name}`.",
25
                  category=DeprecationWarning, stacklevel=2)
26

27
    return getattr(_arma, name)
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc