##### SUMMARY
group contains call to Display.deprecated or AnsibleModule.deprecate and is scheduled for removal

```
b/ansible/inventory/group.py:54:20: ansible-deprecated-version: Deprecated version ('2.10') found in call to Display.deprecated or AnsibleModule.deprecate
```

##### ISSUE TYPE
 - Bug Report

##### COMPONENT NAME
```
b/ansible/inventory/group.py
```

##### ANSIBLE VERSION
```
2.10
```

##### CONFIGURATION
N/A

##### OS / ENVIRONMENT
N/A

##### STEPS TO REPRODUCE
N/A

##### EXPECTED RESULTS
N/A

##### ACTUAL RESULTS
N/A

self._hosts_cache = None
        for g in self.get_ancestors():
            g._hosts_cache = None
    def get_hosts(self):
        if self._hosts_cache is None:
            self._hosts_cache = self._get_hosts()
        return self._hosts_cache
    def _get_hosts(self):
        hosts = []
        seen = {}
        for kid in self.get_descendants(include_self=True, preserve_ordering=True):
            kid_hosts = kid.hosts
            for kk in kid_hosts:
                if kk not in seen:
                    seen[kk] = 1
                    if self.name == 'all' and kk.implicit:
                        continue
                    hosts.append(kk)
        return hosts
    def get_vars(self):
        return self.vars.copy()
    def set_priority(self, priority):
        try:
            self.priority = int(priority)
        except TypeError:
            
            pass